Interface ObjectDeserializer

    • Method Detail

      • deserialze

        <T> T deserialze​(DefaultJSONParser parser,
                         Type type,
                         Object fieldName)
        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.

        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
      • getFastMatchToken

        int getFastMatchToken()