jmespath.py
jmespath.py copied to clipboard
JMESPath is a query language for JSON.
My understanding based on [the specification](https://jmespath.org/specification.html#literal-expressions) is that the content of a literal expression, i.e. the text between backticks, is supposed to be a valid JSON expression, otherwise it should...
example data: ``` { "stores":{ "s1":{ "id":"s1", "openTime": 1234567890 }, "s2":{ "id":"s2", "openTime": 1234567891 }, "s3":{ "id":"s3", "openTime": 1234567892 }, "s4":{ "id":"s4", "openTime": 1234567893 } } } ``` I can...
```console + /usr/bin/python3 setup.py build_sphinx -b man --build-dir build/sphinx running build_sphinx Running Sphinx v4.0.3 making output directory... done WARNING: html_static_path entry '_static' does not exist building [mo]: targets for 0...
``` $ jpp --help usage: jpp [-h] [-a] [-c] [-e EXPR_FILE] [-f FILENAME] [-r] [-R] [-s] [-u] [--unquoted] [--ast] [expression] jpp is an extended superset of the jp CLI for...
I may just be missing it, but it doesn't seem to be possible to do the equivalent of `//` in XPath. I.e. find the desired expression anywhere in the supplied...
For example if I had following dict; ``` data = { "foo": { "bar": [ {"name": "one"}, {"name": "two"} ] } } ``` I'd like to be able to change...
I have a custom function to test array subsets, but sometimes the field does not exist in my JSON, in this case the input is `none` instead of `['some', 'array']`...
I believe now any tuples in input data should be treated as lists. use case described in the issue https://github.com/jmespath/jmespath.py/issues/179 now works as expected in the issue
Hi, thanks for this awesome lib! One question: it seems to be impossible to set a custom return in case the search fails. E.g. ``` not_found = object() jmespath.search('foo.aaa', {'foo':...
It would be nice to know in advance what parts of the jmespath spec are supported. jq allows top level dots. So echo '{"foo": "bar"}' | jq '.foo bar Also...