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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -