public final class JSONSerializerUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
deserializeRaw(org.codehaus.jackson.JsonParser jp,
org.codehaus.jackson.map.DeserializationContext ctxt,
Class<T> clazz)
Deserialize the value, treating all elements as data rather than as type information.
|
static void |
serializeRaw(Object value,
org.codehaus.jackson.JsonGenerator jgen,
org.codehaus.jackson.map.SerializerProvider provider)
Serialize the value without any type information.
|
public static void serializeRaw(Object value, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider) throws IOException, org.codehaus.jackson.JsonProcessingException
value
- the value to serializejgen
- the json generator ( this is passed to any custom Jackson serializer )provider
- the provider ( this is passed to any custom Jackson serializer )IOException
- if the underlying serializer threw an IOExceptionorg.codehaus.jackson.JsonProcessingException
- if the underlying serializer threw a JsonProcessingExceptionpublic static <T> T deserializeRaw(org.codehaus.jackson.JsonParser jp, org.codehaus.jackson.map.DeserializationContext ctxt, Class<T> clazz) throws IOException, org.codehaus.jackson.JsonProcessingException
T
- the type to deserialize asjp
- the json parser ( this is passed to any custom Jackson deserializer )ctxt
- the deserialization context ( this is passed to any custom Jackson deserializer )clazz
- the class to deserialize asIOException
- if the underlying deserializer threw an IOExceptionorg.codehaus.jackson.JsonProcessingException
- if the underlying deserializer threw a JsonProcessingExceptionCopyright © 2020 Actian Corporation. All rights reserved.