Skip to content

Feature/ondemand wildcard support#2533

Merged
lemire merged 3 commits intosimdjson:masterfrom
hiteshmk05:feature/ondemand-wildcard-support
Nov 1, 2025
Merged

Feature/ondemand wildcard support#2533
lemire merged 3 commits intosimdjson:masterfrom
hiteshmk05:feature/ondemand-wildcard-support

Conversation

@hiteshmk05
Copy link
Contributor

@hiteshmk05 hiteshmk05 commented Oct 30, 2025

Implementation for #2306

Description

This PR adds wildcard (*) support to the On-Demand API's JSONPath functionality, enabling queries that return multiple matching values. Implements wildcards for both objects (.*) and arrays ([*]), including nested and combined wildcards. Includes comprehensive test suite with 12 test cases covering various scenarios.

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation / tests
  • Other (please describe):

Run tests:

cd build
cmake -B build -D SIMDJSON_SANITIZE=ON -D SIMDJSON_DEVELOPER_MODE=ON
cmake --build build
ctest --test-dir build --output-on-failure
# Or specific test:
./build/tests/ondemand/ondemand_wildcard_tests

@lemire
Copy link
Member

lemire commented Oct 30, 2025

Running tests. Will review.

@lemire
Copy link
Member

lemire commented Oct 31, 2025

Running tests.

@lemire
Copy link
Member

lemire commented Nov 1, 2025

Merging.

@lemire lemire merged commit a24f845 into simdjson:master Nov 1, 2025
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants