public interface JsonDeserializationContext
Context for deserialization that is passed to a custom deserializer during invocation of its
JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)
method.
Method Summary | ||
---|---|---|
|
deserialize(JsonElement json,
java.lang.reflect.Type typeOfT)
Invokes default deserialization on the specified object. |
Method Detail |
---|
<T> T deserialize(JsonElement json, java.lang.reflect.Type typeOfT) throws JsonParseException
JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)
method. Doing
so will result in an infinite loop since Gson will in-turn call the custom deserializer again.
T
- The type of the deserialized object.json
- the parse tree.typeOfT
- type of the expected return value.
JsonParseException
- if the parse tree does not contain expected data.