LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-clischemasSerdeConfigallowed_json_modules
    Attribute●Since v0.4

    allowed_json_modules

    Copy
    allowed_json_modules: list[list[str]] | bool | None
    View source on GitHub

    Optional. List of allowed python modules to de-serialize custom objects from JSON.

    If provided, only the specified modules will be allowed to be deserialized. If omitted, no modules are allowed, and the object returned will simply be a json object OR a deserialized langchain object.

    Example: {... "serde": { "allowed_json_modules": [ ["my_agent", "my_file", "SomeType"], ] } }

    If you set this to True, any module will be allowed to be deserialized.

    Example: {... "serde": { "allowed_json_modules": True } }