You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;