h2non / jsonpath-ng

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

README.rst examples are syntactically wrong #60

Open rbuckland opened 3 years ago

rbuckland commented 3 years ago

In README.rst - the examples at line 205 to 207are syntatically wrong (unbalanced '()' brackets).

203: +--------------+----------------------------------------------+
204: | filter       | - $.objects[?(@some_field > 5)]              |
205: |              | - $.objects[?some_field = "foobar")]         |
206: |              | - $.objects[?some_field =~ "foobar")]        |
207: |              | - $.objects[?some_field > 5 & other < 2)]    |
208: +--------------+----------------------------------------------+

I do not know what it should be yet - but the parser doesn't like it.