jmespath / jmespath.py

JMESPath is a query language for JSON.
http://jmespath.org
MIT License
2.19k stars 181 forks source link

Fix filter projection parsing #75

Closed jamesls closed 9 years ago

jamesls commented 9 years ago

Filters should have the same token precedence as the * character. This makes intuitive sense, foo[*].bar.baz should have the same RHS as foo[?a==b].bar.baz

This appears to have been a regression from when the switchover to a handwritten parser happened.

Given the expression foo[?a==b].bar.baz

Before:

before

After:

after