Example usage for Java com.google.gson FieldNamingPolicy fields, constructors, methods, implement or subclass
The text is from its open source code.
FieldNamingPolicy | IDENTITY Using this naming policy with Gson will ensure that the field name is unchanged. |
FieldNamingPolicy | UPPER_CAMEL_CASE Using this naming policy with Gson will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form. |
FieldNamingPolicy | UPPER_CAMEL_CASE_WITH_SPACES Using this naming policy with Gson will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form and the words will be separated by a space. |
FieldNamingPolicy | LOWER_CASE_WITH_UNDERSCORES Using this naming policy with Gson will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by an underscore (_). |
FieldNamingPolicy | LOWER_CASE_WITH_DASHES Using this naming policy with Gson will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by a dash (-). |