JSONPath icon indicating copy to clipboard operation
JSONPath copied to clipboard

Bracket notation with quoted closing bracket literal

Open SoftCreatR opened this issue 4 years ago • 2 comments

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 avatar Nov 02 '20 19:11 SoftCreatR

Can you tell me what is the expected result here.

Amoldreamer avatar Nov 06 '20 15:11 Amoldreamer

Updated the issue.

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

SoftCreatR avatar Nov 07 '20 00:11 SoftCreatR