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-sdkencryptiontypesJsonDecryptor
    Attribute●Since v0.2

    JsonDecryptor

    Copy
    JsonDecryptor = Callable[[EncryptionContext, Json], Awaitable[Json]]
    View source on GitHub

    Parameters

    NameTypeDescription
    ctx*unknown

    Encryption context with model type, field name, and metadata

    data*unknown

    The encrypted JSON dictionary

    Handler for decrypting structured JSON data.

    Note: Must be an async function. Decryption typically involves I/O operations (calling external KMS services), which should be async.

    Inverse of JsonEncryptor. Must be able to decrypt data that was encrypted by the corresponding encryptor.