You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from jsonpath_ng.ext import parse
jsonpath_expr = parse('$.commands[0,1].test_prop')
jsonpath_expr = parse('$.commands[0,1].tester') File "C:\Python38\lib\site-packages\jsonpath_ng\ext\parser.py", line 174, in parse return ExtentedJsonPathParser(debug=debug).parse(path) File "C:\Python38\lib\site-packages\jsonpath_ng\parser.py", line 38, in parse return self.parse_token_stream(lexer.tokenize(string)) File "C:\Python38\lib\site-packages\jsonpath_ng\parser.py", line 62, in parse_token_stream return new_parser.parse(lexer = IteratorToTokenStream(token_iterator)) File "C:\Python38\lib\site-packages\ply\yacc.py", line 333, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) File "C:\Python38\lib\site-packages\ply\yacc.py", line 1201, in parseopt_notrack tok = call_errorfunc(self.errorfunc, errtoken, self) File "C:\Python38\lib\site-packages\ply\yacc.py", line 192, in call_errorfunc r = errorfunc(token) File "C:\Python38\lib\site-packages\jsonpath_ng\parser.py", line 78, in p_error raise JsonPathParserError('Parse error at %s:%s near token %s (%s)' jsonpath_ng.exceptions.JsonPathParserError: Parse error at 1:12 near token , (,)
The text was updated successfully, but these errors were encountered:
Env:
The following code returns parser error:
jsonpath_expr = parse('$.commands[0,1].tester') File "C:\Python38\lib\site-packages\jsonpath_ng\ext\parser.py", line 174, in parse return ExtentedJsonPathParser(debug=debug).parse(path) File "C:\Python38\lib\site-packages\jsonpath_ng\parser.py", line 38, in parse return self.parse_token_stream(lexer.tokenize(string)) File "C:\Python38\lib\site-packages\jsonpath_ng\parser.py", line 62, in parse_token_stream return new_parser.parse(lexer = IteratorToTokenStream(token_iterator)) File "C:\Python38\lib\site-packages\ply\yacc.py", line 333, in parse return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc) File "C:\Python38\lib\site-packages\ply\yacc.py", line 1201, in parseopt_notrack tok = call_errorfunc(self.errorfunc, errtoken, self) File "C:\Python38\lib\site-packages\ply\yacc.py", line 192, in call_errorfunc r = errorfunc(token) File "C:\Python38\lib\site-packages\jsonpath_ng\parser.py", line 78, in p_error raise JsonPathParserError('Parse error at %s:%s near token %s (%s)' jsonpath_ng.exceptions.JsonPathParserError: Parse error at 1:12 near token , (,)
The text was updated successfully, but these errors were encountered: