Class JSONPDeserializer

    • Constructor Detail

      • JSONPDeserializer

        public JSONPDeserializer()
    • Method Detail

      • deserialze

        public <T> T deserialze​(DefaultJSONParser parser,
                                Type type,
                                Object fieldName)
        Description copied from interface: ObjectDeserializer
        fastjson invokes this call-back method during deserialization when it encounters a field of the specified type.

        In the implementation of this call-back method, you should consider invoking JSON.parseObject(String, Type, Feature[]) method to create objects for any non-trivial field of the returned object.

        Specified by:
        deserialze in interface ObjectDeserializer
        Parameters:
        parser - context DefaultJSONParser being deserialized
        type - The type of the Object to deserialize to
        fieldName - parent object field name
        Returns:
        a deserialized object of the specified type which is a subclass of T