h2non / jsonpath-ng

Finally, a JSONPath implementation for Python that aims to be standard compliant. That's all. Enjoy!
Apache License 2.0
572 stars 85 forks source link

getting JsonPathParserError('Parse error at %s:%s near token %s (%s)' error. #107

Closed bjp-rocks closed 11 months ago

bjp-rocks commented 2 years ago

Hi there,

how to parse a string containing spaces?

like if I run below command then it will raise above mentioned error JsonPathParserError('Parse error at %s:%s near token %s (%s)'

foo="'30'.result.data.power_supplies.Power Supplies[0]" print(parse(foo))

1wang-wood commented 1 year ago

you can use quotes image