-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make IndexResult
always point to the start of the matched value
#161
Labels
Milestone
Comments
Tagging @V0ldek for notifications |
V0ldek
added a commit
that referenced
this issue
Jun 19, 2023
The `--result bytes` mode now consistently reports the first byte of the value it matched. This can be used to extract the actual value from the JSON by parsing from the reported byte. Ref: #161
V0ldek
added a commit
that referenced
this issue
Jun 19, 2023
The `--result bytes` mode now consistently reports the first byte of the value it matched. This can be used to extract the actual value from the JSON by parsing from the reported byte. Ref: #161
#170 fixes this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is your feature request related to a problem? Please describe.
Currently the
IndexResult
(and the-r bytes
mode) return byte offsets that are "somewhere near" the matched value. This is pretty much useless for any serious application.Describe the solution you'd like
It should always return the first byte of the matched value, be it the opening character of a complex subdocument, or the first character of an atomic value.
Additional context
Here's the values that are returned now:
$
#160).The text was updated successfully, but these errors were encountered: