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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -