parse_json_markdown#

langchain_core.utils.json.parse_json_markdown(json_string: str, *, parser: ~typing.Callable[[str], ~typing.Any] = <function parse_partial_json>) dict[source]#

Parse a JSON string from a Markdown string.

Parameters:
  • json_string (str) – The Markdown string.

  • parser (Callable[[str], Any]) –

Returns:

The parsed JSON object as a Python dictionary.

Return type:

dict