Class JsonNodeDeserializer

    • Field Detail

      • instance

        private static final JsonNodeDeserializer instance
        Singleton instance of generic deserializer for JsonNode. Only used for types other than JSON Object and Array.
    • Constructor Detail

      • JsonNodeDeserializer

        protected JsonNodeDeserializer()
    • Method Detail

      • getDeserializer

        public static JsonDeserializer<? extends JsonNode> getDeserializer​(java.lang.Class<?> nodeClass)
        Factory method for accessing deserializer for specific node type
      • deserialize

        public JsonNode deserialize​(com.fasterxml.jackson.core.JsonParser p,
                                    DeserializationContext ctxt)
                             throws java.io.IOException
        Implementation that will produce types of any JSON nodes; not just one deserializer is registered to handle (in case of more specialized handler). Overridden by typed sub-classes for more thorough checking
        Specified by:
        deserialize in class JsonDeserializer<JsonNode>
        Parameters:
        p - Parsed used for reading JSON content
        ctxt - Context that can be used to access information about this deserialization activity.
        Returns:
        Deserialized value
        Throws:
        java.io.IOException