TYPE - the java type deserialized by this interfacepublic interface JsonTypeDeserializer<TYPE>
JsonTransformer.registerDeserializer(JsonTypeDeserializer) method.| Modifier and Type | Method and Description |
|---|---|
TYPE |
deserialize(String source,
JsonDeserializer context)
This method receives a JSON string and should create the java object with the specific type.
|
Class<TYPE> |
getType()
This method should return with the java type.
|
TYPE deserialize(String source, JsonDeserializer context) throws TransformerException
context to deserialize another JSON strings.source - the JSON string to deserializecontext - a context object which can be used to deserialize another JSON stringsTransformerException - if the deserialization is not possibleCreated by Kornél Simon, 2022