Java com.google.gson FieldNamingPolicy fields, constructors, methods, implement or subclass

Example usage for Java com.google.gson FieldNamingPolicy fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gson FieldNamingPolicy.

The text is from its open source code.

Field

FieldNamingPolicyIDENTITY
Using this naming policy with Gson will ensure that the field name is unchanged.
FieldNamingPolicyUPPER_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.
FieldNamingPolicyUPPER_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.
FieldNamingPolicyLOWER_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 (_).
FieldNamingPolicyLOWER_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 (-).