parser
– Translate expression into executable¶
- jsonpath.parser.parse(expr: str) Expr ¶
Transform JSONPath expression into an executable object.
>>> parse("$.a").find({"a": 1}) [1]
- Parameters:
expr (str) – JSONPath expression
- Returns:
An executable object.
- Return type:
- Raises:
JSONPathError – Transform JSONPath expression error.