Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.google.gson
Interface JsonDeserializationContext

    public interface JsonDeserializationContext

Context for deserialization that is passed to a custom deserializer during invocation of its `JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)` method.

Author:
  Inderjeet Singh, Joel Leitch

Method Summary
`
`<T> T`
` | `deserialize(JsonElement json, Type typeOfT)` Invokes default deserialization on the specified object.

Method Detail

### deserialize

    <T> T deserialize(JsonElement json,
                      Type typeOfT)
                  throws JsonParseException

  Invokes default deserialization on the specified object. It should never be invoked on the element received as a parameter of the `JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)` method. Doing so will result in an infinite loop since Gson will in-turn call the custom deserializer again.

  Type Parameters:
    `T` - The type of the deserialized object.
  Parameters:
    `json` - the parse tree.
    `typeOfT` - type of the expected return value.
  Returns:
    An object of type typeOfT.
  Throws:
    `JsonParseException` - if the parse tree does not contain expected data.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008–2014 Google, Inc.. All rights reserved.