Skip to content

Bracket notation with quoted closing bracket literal #34

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

Open
SoftCreatR opened this issue Nov 2, 2020 · 2 comments
Open

Bracket notation with quoted closing bracket literal #34

SoftCreatR opened this issue Nov 2, 2020 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@SoftCreatR
Copy link
Owner

SoftCreatR commented Nov 2, 2020

Test Data:

{
   "]":42
}

Selector:

$[']']

Result:

Unable to parse token ' in expression: [']']

Expected result:

[
   42
]

https://cburgmer.github.io/json-path-comparison/results/bracket_notation_with_quoted_closing_bracket_literal.html

@SoftCreatR SoftCreatR added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Nov 2, 2020
@Amoldreamer
Copy link

Can you tell me what is the expected result here.

@SoftCreatR
Copy link
Owner Author

SoftCreatR commented Nov 7, 2020

Updated the issue.

The problem lies in JSONPathLexer::parseExpressionTokens. A fix might be a little bit tricky.

@SoftCreatR SoftCreatR added enhancement New feature or request and removed bug Something isn't working labels Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants