Skip to content
UrielCh edited this page Jul 31, 2015 · 1 revision

Remap Field since V 2.2

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;
Clone this wiki locally