kennknowles / python-jsonpath-rw

A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming.
Apache License 2.0
603 stars 194 forks source link

why Parse error at 1:4 near token 8 (NUMBER) ? #70

Open ojbkaaaa opened 5 years ago

ojbkaaaa commented 5 years ago

1、 a = "[*].8a1c7c33-68cd-49d7-b9a6-1d3833a65ab5" parse(a) retuen Exception: Parse error at 1:4 near token 8 (NUMBER)

2、 a = '[*].{}'.format("eb71bcac-ccad-4a05-aeb6-7b092398429c") parse(a) retuen Child(Slice(start=None,end=None,step=None), Fields('eb71bcac-ccad-4a05-aeb6-7b09 2398429c'))

Why are different results? One returns correctly, one gives an error