Package ca.cdr.api.model.json
Class RawJsonDeserializer
java.lang.Object
tools.jackson.databind.ValueDeserializer<String>
ca.cdr.api.model.json.RawJsonDeserializer
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
Sometimes, the JSON received in the additionalJson property of the TransactionLogEventJson may be nested. This Custom deserializer helps
prevent the JSON parse error: "Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)" from occurring when
additionalJson is being deserialized.
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(tools.jackson.core.JsonParser theParser, tools.jackson.databind.DeserializationContext theDeserializationContext) Methods inherited from class tools.jackson.databind.ValueDeserializer
createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
RawJsonDeserializer
public RawJsonDeserializer()
-
-
Method Details
-
deserialize
public String deserialize(tools.jackson.core.JsonParser theParser, tools.jackson.databind.DeserializationContext theDeserializationContext) throws tools.jackson.core.JacksonException - Specified by:
deserializein classtools.jackson.databind.ValueDeserializer<String>- Throws:
tools.jackson.core.JacksonException
-