Class UntypedMapDeserializer

  • public class UntypedMapDeserializer
    extends java.lang.Object
    Deserializer to convert JSON object into an untyped map. While we strive to provide more typed content in this library, there are instances we need to convert our specific choice of JSON representation (using GSON) to a generic Map<String, Object>.
    • Constructor Summary

      Constructor Description
      Default deserializer for the untyped map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> deserialize​( jsonObject)
      Deserialize JSON into untyped map.
      • Methods inherited from class java.lang.Object

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

      • UntypedMapDeserializer

        public UntypedMapDeserializer()
        Default deserializer for the untyped map. The result untyped map has same object graph structure as that of the given JSON content.
    • Method Detail

      • deserialize

        public java.util.Map<java.lang.String,​java.lang.Object> deserialize​( jsonObject)
        Deserialize JSON into untyped map. JsonArray is represented as List<Object>. JsonObject is represented as Map<String, Object>. JsonPrimitive is represented as String, Number, or Boolean.
        jsonObject - JSON to convert into untyped map
        untyped map without dependency on JSON representation.