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
Post a Comment