Refactored the GetByJsonPath function by extracting the core logic into a new GetByJsonPathInternal method to avoid redundant DOM parsing.
Added GetByJsonPaths, a new function that supports querying multiple JSON paths in a single operation, which improves performance by parsing the JSON document only once.
Updated tests:
Added ValidBatchOK utility to validate the results of batch processing.
Introduced new test cases (WildCardBatch and BadBatch) to ensure correct handling of valid and invalid JSON with multiple paths.
Minor formatting improvements and inclusion of the <algorithm> header.
GetByJsonPath
function by extracting the core logic into a newGetByJsonPathInternal
method to avoid redundant DOM parsing.GetByJsonPaths
, a new function that supports querying multiple JSON paths in a single operation, which improves performance by parsing the JSON document only once.ValidBatchOK
utility to validate the results of batch processing.WildCardBatch
andBadBatch
) to ensure correct handling of valid and invalid JSON with multiple paths.<algorithm>
header.