A space before a segment is rejected on the right-hand side of a comparison
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 67/100
Research direction
Start by locating the JSONPath parser and the tests for whitespace around query segments; the issue gives two failing expressions and their expected results. Compare how the left and right sides of a comparison are parsed, then add regression cases for both examples. Done means both expressions parse and return the stated objects, consistent with the reported jsonpath-rfc9535 behavior.
Written by the indexing model from the issue text.
Description
A blank before a segment is allowed in a singular query, but not when the query is on the right-hand side of a
comparison.
$[?1 == @ .b]on[{"b":1}]is a parse error ("unexpected '.' at position 11"); it should return[{"b":1}].$[[email protected] <= @ .b]on[{"a":1,"b":1}]is a parse error at position 13; it should return the object.
The left-hand side accepts the space; only the right-hand side rejects it. jsonpath-rfc9535 accepts both.
- Dominant language
- Go
- Stars
- 41
- Forks
- 4
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from theory/jsonpath
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Similar issues
-
area: pipeline priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Possibly taken @szluyu99 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
router-for-me/CLIProxyAPI#8815 ·
Maintainers usually reply within 7 days