-
Notifications
You must be signed in to change notification settings - Fork 1
Rample remapping
UrielCh edited this page Jul 31, 2015
·
1 revision
If json you want to deserielize contains reserved java keyword as field name you can remap them using the remapField
method
// your class contains an "enum" field:
JSONValue.remapField(theClass.class, "enum", "enum_");
// theClass.enum_ will be serialized as enum
// and {enum:value} wille be store in theClass.enum_ field;