public class RawValueJsonSerializer<T> extends JsonSerializer<T>
JsonSerializer that will just output raw values by calling toString() on value to serialize.| Modifier and Type | Method and Description |
|---|---|
protected void |
doSerialize(JsonWriter writer,
Object value,
JsonSerializationContext ctx)
Serializes a non-null object into JSON output.
|
static <T> RawValueJsonSerializer<T> |
getInstance() |
serializepublic static <T> RawValueJsonSerializer<T> getInstance()
RawValueJsonSerializerprotected void doSerialize(JsonWriter writer, @Nonnull Object value, JsonSerializationContext ctx) throws IOException
JsonSerializerdoSerialize in class JsonSerializer<T>writer - JsonWriter used to write the serialized JSONvalue - Object to serializectx - Context for the full serialization processIOException - if an error occurs while writing the outputCopyright © 2013. All Rights Reserved.