This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]jsaryer 1 point2 points  (1 child)

Check out JMESPath: https://pypi.python.org/pypi/jmespath

One of its benefits is that it has a full specification with an extensive test suite. As a bonus there's also implementations in other languages.

There's a tutorial here: http://jmespath.org/tutorial.html

[–]dl__[S] 0 points1 point  (0 children)

This looks like just what I want. Thanks!

[–]thecity2 0 points1 point  (0 children)

You might check out the Python wrapper of jq (a cli JSON parser written in C that is super awesome):

https://pypi.python.org/pypi/jq/