I have "type":{"platformType":false}" in REST response for my
enum object property.
Object property:
public class Organization {
//...
private OrganizationType type;
//...
public OrganizationType type() {
return type;
}
//...
}
OrganizationType :
public enum OrganizationType {
/** Non-profit organization. */
NON_PROFIT,
/** Private organization. */
PRIVATE,
/** Government organization. */
GOVERNMENT
}
I have correct deserializing at log:
... type=PRIVATE ...
Should I make custom deserialization for REST requests? Could I make a
custom REST method for retrieving some fields of object?