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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -