Class RawJsonDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<String>
ca.cdr.api.model.json.RawJsonDeserializer
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider

public class RawJsonDeserializer extends tools.jackson.databind.ValueDeserializer<String>
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • deserialize

      public String deserialize(tools.jackson.core.JsonParser theParser, tools.jackson.databind.DeserializationContext theDeserializationContext) throws tools.jackson.core.JacksonException
      Specified by:
      deserialize in class tools.jackson.databind.ValueDeserializer<String>
      Throws:
      tools.jackson.core.JacksonException