Package io.modelcontextprotocol.json
package io.modelcontextprotocol.json
-
ClassDescriptionThis class is to be used to provide access to the default
McpJsonMapperand to the defaultJsonSchemaValidatorinstances via the static methods:McpJsonDefaults.getMapper()andMcpJsonDefaults.getSchemaValidator().Abstraction for JSON serialization/deserialization to decouple the SDK from any specific JSON library.Strategy interface for resolving aMcpJsonMapper.TypeRef<T>Captures generic type information at runtime for parameterized JSON (de)serialization.