Class MapJsonSerializer

java.lang.Object
org.springframework.integration.ip.tcp.serializer.MapJsonSerializer
All Implemented Interfaces:
Deserializer<Map<?,​?>>, Serializer<Map<?,​?>>

public class MapJsonSerializer
extends Object
implements Serializer<Map<?,​?>>, Deserializer<Map<?,​?>>
Serializes a Map as JSON. Deserializes JSON to a Map. The default JsonObjectMapperProvider.newInstance() can be overridden using setJsonObjectMapper(JsonObjectMapper).

The JSON deserializer can't delimit multiple JSON objects. Therefore another (de)serializer is used to apply structure to the stream. By default, this is a simple ByteArrayLfSerializer, which inserts/expects LF (0x0a) between messages.

Since:
3.0
Author:
Gary Russell, Artem Bilan