JSONPath
JSONPath copied to clipboard
Bracket notation with quoted closing bracket literal
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
Can you tell me what is the expected result here.
Updated the issue.
The problem lies in JSONPathLexer::parseExpressionTokens. A fix might be a little bit tricky.