jmespath.py
jmespath.py copied to clipboard
JMESPath is a query language for JSON.
JMESPath fails with `TypeError: unorderable types: int() < str()` error in following case: test.json ``` [ { "id": 1, "sha": "abc", "ref": "develop", "status": "running" }, { "id": 2, "sha":...
See https://github.com/jmespath-community/jmespath.test/issues/16.
I was confused by the behaviour of the following: ```json { "locations": [ {"name": "Seattle", "state": "WA"}, {"name": "New York", "state": "NY"}, {"name": "Bellevue", "state": "WA"}, {"name": "Olympia", "state": "WA"}...
## Sub Expression The specification for [`sub-expression`](https://jmespath.org/specification.html#subexpressions) outlines how it should behave in pseudocode: ``` left-evaluation = search(left-expression, original-json-document) result = search(right-expression, left-evaluation) ``` However, this is incorrect, as many...
This is a feature request to support addition, subtraction, multiplication, division, and logarithm operators and functions.
for example I would like to query `people[?first=='James'].last` with this json ``` { "people": [ {"first": "James", "last": "d"}, {"first": "Jacob", "last": "e"}, {"first": "Jayden", "last": "f"}, {"missing": "different"} ],...
We recently noticed that a heavy JMESpath workload was triggering a large number of garbage collection runs. We are using `jmespath.compile()`, and we tracked this down to the `jmespath.visitor.TreeInterpreter` that...
Sorry for perhaps a basic question but have structure as follows : jsonData = """{ "products" : { "1" : { "sku" : "a", "attributes" : { "location" : "there",...
Implements [JEP-16 Arithmetic Expressions](https://github.com/jmespath-community/jmespath.spec/blob/main/jep-016-arithmetic-expressions.md) from [JMESPath Community](https://jmespath.site/main/#spec-arithmetic-expressions).
Check [jmespath.site/ #106](https://github.com/jmespath/jmespath.site/issues/106) Added builtin functions `remove_empty` and `remove_null`. Added compliance tests.