java - How to force a GSON deserialization exception when a field is not present without a custom deserialization? -


i want able check if field present in response, , in case not present exception.

is there way force gson deserialization throw exception when field not present without custom deserialization?

gson optional , required fields

i've done in past. registering typeadapter seems decent solution


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -