singer_sdk.helpers.jsonpath.extract_jsonpath

singer_sdk.helpers.jsonpath.extract_jsonpath(expression, input)[source]

Extract records from an input based on a JSONPath expression.

Parameters:
  • expression (str) – JSONPath expression to match against the input.

  • input (dict | list) – JSON object or array to extract records from.

Yields:

Records matched with JSONPath expression.

Return type:

Generator[Any, None, None]