Object Serialization to JSON (using Gson). How to set field names in UpperCamelCase?
Taken from the docs: Gson supports some pre-defined field naming policies to convert the standard Java field names (i.e. camel cased names starting with lower case — “sampleFieldNameInJava”) to a Json field name (i.e. sample_field_name_in_java or SampleFieldNameInJava). See the FieldNamingPolicy class for information on the pre-defined naming policies. It also has an annotation based strategy … Read more