pipecat.json module¶
Functions for working with JSON data.
-
pipecat.json.
parse
(source, key='string', keyout='json')¶ Parse JSON data from records.
This filter parses an incoming record key as JSON, appending the JSON data to the output.
Parameters: - source (Record generator, required)
- key (Record key, optional) – The key in incoming records to parse as JSON.
- keyout (Record key, optional) – The key in outgoing records where the parsed JSON will be stored.
Yields: record (dict) – Input records with an additional keyout field containing JSON-compatible data.