public final class JSONSerializerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
deserializeRaw(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
Class<T> clazz)
Deserialize the value, treating all elements as data rather than as type information.
|
static void |
serializeRaw(Object value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
Serialize the value without any type information.
|
public static void serializeRaw(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.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 IOExceptioncom.fasterxml.jackson.core.JsonProcessingException - if the underlying serializer threw a JsonProcessingExceptionpublic static <T> T deserializeRaw(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt,
Class<T> clazz)
throws IOException,
com.fasterxml.jackson.core.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 IOExceptioncom.fasterxml.jackson.core.JsonProcessingException - if the underlying deserializer threw a JsonProcessingExceptionCopyright © 2024 Actian Corporation. All rights reserved.