jmespath / jmespath.py

JMESPath is a query language for JSON.

Home Page:http://jmespath.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter not working for numbers

KingR1 opened this issue · comments

commented

I just take one example from your tutorials.
{ "people": [ { "name": "b", "age": 30, "state": {"name": "up"} }, { "name": "a", "age": 50, "state": {"name": "down"} }, { "name": "c", "age": 40, "state": {"name": "up"} } ] }

And I want to try get all records where age > 30 people[?age>30]

I think it should work... but it returns all results.

[ { "name": "b", "age": 30, "state": { "name": "up" } }, { "name": "a", "age": 50, "state": { "name": "down" } }, { "name": "c", "age": 40, "state": { "name": "up" } } ]

commented

Found answer in examples