The default should be the same, but you can change it. The easiest way is to apply a common naming pattern to all fields. If you use Gson, then FieldNamingPolicy is responsible for this. Using FieldNamingPolicy , for example, you can normally deserialize JSON with pascal-case fields into Java objects, whose field names are usually in camel-case. FieldNamingPolicy set up like this:
Gson gson = new GsonBuilder() .setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE) .create();
Take a look at the documentation , there certainly is a suitable policy for your case.
If for some reason you have a different naming template in one object or some unpleasant abbreviations, then you can use annotations, which can explicitly set the key for which this field is available in JSON. In Gson, this is the SerializedName annotation (the link is a simple example of use).
SignInResponseclassSignInResponsevalue of theresultand the structure of the error received. - eugeneek