Class JsonStringSerializer
- java.lang.Object
-
- org.codehaus.jackson.map.JsonSerializer<T>
-
- org.codehaus.jackson.map.ser.std.SerializerBase<JsonString>
-
- com.atlassian.confluence.rest.serialization.JsonStringSerializer
-
- All Implemented Interfaces:
org.codehaus.jackson.schema.SchemaAware
public class JsonStringSerializer extends org.codehaus.jackson.map.ser.std.SerializerBase<JsonString>
SerializesJsonString
s. Could be implemented viaJsonRawValue
, but that breaks encapsulation, and we still have to provide theJsonStringDeserializer
.- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description JsonStringSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(JsonString value, org.codehaus.jackson.JsonGenerator generator, org.codehaus.jackson.map.SerializerProvider provider)
-
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase
createObjectNode, createSchemaNode, createSchemaNode, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow
-
-
-
-
Method Detail
-
serialize
public void serialize(JsonString value, org.codehaus.jackson.JsonGenerator generator, org.codehaus.jackson.map.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classorg.codehaus.jackson.map.ser.std.SerializerBase<JsonString>
- Throws:
IOException
-
-