LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    โŒ˜I

    Chat LangChain

    What can I help with?

    Enter to sendยทShift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreutilsjsonparse_and_check_json_markdown
    Functionโ—Since v1.8

    parse_and_check_json_markdown

    Copy
    parse_and_check_json_markdown(
        text: str,
        expected_keys: list[str],
    ) -> dict[
    View source on GitHub
    str
    ,
    Any
    ]

    Parameters

    NameTypeDescription
    text*str
    expected_keys*list[str]

    Parse and check a JSON string from a Markdown string.

    Checks that it contains the expected keys.

    The Markdown string.

    The expected keys in the JSON string.