parse_partial_json#
- langchain_core.utils.json.parse_partial_json(
- s: str,
- *,
- strict: bool = False,
Parse a JSON string that may be missing closing braces.
- Parameters:
s (str) – The JSON string to parse.
strict (bool) – Whether to use strict parsing. Defaults to False.
- Returns:
The parsed JSON object as a Python dictionary.
- Return type:
Any