### YamlMime:JavaType uid: "com.azure.cosmos.CosmosItemSerializer" fullName: "com.azure.cosmos.CosmosItemSerializer" name: "CosmosItemSerializer" nameWithType: "CosmosItemSerializer" summary: "The allows customizing the serialization of Cosmos Items - either to transform payload (for example wrap/unwrap in custom envelopes) or use custom serialization settings or json serializer stacks." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public abstract class **CosmosItemSerializer**" constructors: - uid: "com.azure.cosmos.CosmosItemSerializer.CosmosItemSerializer()" fullName: "com.azure.cosmos.CosmosItemSerializer.CosmosItemSerializer()" name: "CosmosItemSerializer()" nameWithType: "CosmosItemSerializer.CosmosItemSerializer()" summary: "Used to instantiate subclasses" modifiers: - "protected" syntax: "protected CosmosItemSerializer()" desc: "Used to instantiate subclasses" fields: - uid: "com.azure.cosmos.CosmosItemSerializer.DEFAULT_SERIALIZER" fullName: "com.azure.cosmos.CosmosItemSerializer.DEFAULT_SERIALIZER" name: "DEFAULT_SERIALIZER" nameWithType: "CosmosItemSerializer.DEFAULT_SERIALIZER" summary: "Gets the default Cosmos item serializer." modifiers: - "static" - "final" field: type: "" syntax: "public static final CosmosItemSerializer DEFAULT_SERIALIZER" desc: "Gets the default Cosmos item serializer. This serializer is used by default when no custom serializer is specified on request options or the " methods: - uid: "com.azure.cosmos.CosmosItemSerializer.deserialize(java.util.Map,java.lang.Class)" fullName: "com.azure.cosmos.CosmosItemSerializer.deserialize(Map jsonNodeMap, Class classType)" name: "deserialize(Map jsonNodeMap, Class classType)" nameWithType: "CosmosItemSerializer.deserialize(Map jsonNodeMap, Class classType)" summary: "Used to deserialize the json tree stored in the Cosmos DB item as a POJO" modifiers: - "abstract" parameters: - description: "the json tree from the Cosmos DB item" name: "jsonNodeMap" type: "Map<String,Object>" - description: "The type of the POJO" name: "classType" type: "Class<>" syntax: "public abstract T deserialize(Map jsonNodeMap, Class classType)" desc: "Used to deserialize the json tree stored in the Cosmos DB item as a POJO" returns: description: "The deserialized POJO" type: "" - uid: "com.azure.cosmos.CosmosItemSerializer.serialize(T)" fullName: "com.azure.cosmos.CosmosItemSerializer.serialize(T item)" name: "serialize(T item)" nameWithType: "CosmosItemSerializer.serialize(T item)" summary: "Used to serialize a POJO into a json tree" modifiers: - "abstract" parameters: - description: "the POJO to be serialized" name: "item" type: "" syntax: "public abstract Map serialize(T item)" desc: "Used to serialize a POJO into a json tree" returns: description: "the json tree that will be used as payload in Cosmos DB items" type: "Map<String,Object>" type: "class" desc: "The allows customizing the serialization of Cosmos Items - either to transform payload (for example wrap/unwrap in custom envelopes) or use custom serialization settings or json serializer stacks." metadata: {} package: "com.azure.cosmos" artifact: com.azure:azure-cosmos:4.63.3