Package
CLI
Describe the bug
Skipping inside queries that do $.data[*][0] do not skip the end of the array though it only needs to read the first entry [0].
Minimal Reproducible Example
cargo run --bin rq -- -v $.data[*][10] ../rsonpath/res/json/nspl_mini.json > run.log
With this json:
nspl_mini.json
Expected behavior
It should skip after [10] entry to the end of the array but it does not.
Workarounds (optional)
No response
Proposed solution (optional)
Handle that case in the engine. To actually skip after reading the important element.
Version of the release
v0.9.4
Rust version
rustc 1.86.0 (05f9846f8 2025-03-31)
Target triple
host: x86_64-unknown-linux-gnu
Features enabled
default
Codegen options
No response
Additional context (optional)
No response
Package
CLI
Describe the bug
Skipping inside queries that do $.data[*][0] do not skip the end of the array though it only needs to read the first entry [0].
Minimal Reproducible Example
cargo run --bin rq -- -v $.data[*][10] ../rsonpath/res/json/nspl_mini.json > run.logWith this json:
nspl_mini.json
Expected behavior
It should skip after [10] entry to the end of the array but it does not.
Workarounds (optional)
No response
Proposed solution (optional)
Handle that case in the engine. To actually skip after reading the important element.
Version of the release
v0.9.4
Rust version
rustc 1.86.0 (05f9846f8 2025-03-31)
Target triple
host: x86_64-unknown-linux-gnu
Features enabled
default
Codegen options
No response
Additional context (optional)
No response