$ python >>> from jsonpath_rw import jsonpath, parse # A robust parser, not just a regex. (Makes powerful extensions possible; see below) >>> jsonpath_expr = parse('foo[*].baz') # Extracting values is easy >>> [match.value for match in jsonpath_expr.find({'foo': [{'baz': 1}, {'baz': 2}]})] [1, 2] # Matches remember where they came from >>> [str(match.full_path) for match in jsonpath_expr.find({'fo

