jmespath / jmespath.py

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

Allow root level wildcards #4

Closed mtdowling closed 11 years ago

mtdowling commented 11 years ago

From your examples, it looks like root level wildcards are not supported.

jamesls commented 11 years ago

Something like this?

jmespath -> '*.foo'
given -> '{"anything": {"foo": "bar"}, "other": {"foo": "baz"}, "nomatch": {"notfoo": "foo"}}'
output -> '["bar", "baz"]'
mtdowling commented 11 years ago

Exactly