Json Path

This module contains ie functions for querying json like strings using jsonPath syntax.


source

json_path

 json_path (json_document:str, path_expression:str)

Yields the matching sub-documents and the path from the document roots to the match as a tuple

Type Details
json_document str The document on which we will run the path expression.
path_expression str The query to execute.
list(json_path('{"foo": [{"baz": 1}, {"baz": 2}]}', 'foo[*].baz'))
[('foo.[0].baz', '1'), ('foo.[1].baz', '2')]
Table 1: Registered Callbacks
name function input_schema output_schema type
json_path json_path ['str', 'str'] ['str', 'str'] IE Function