I want to post data with json format with underscore field. But play does not accept it.
Here is my form class.
public class RegisterDeviceTokenRequest {
private String token;
private String build;
private String deviceUuid;
private String deviceType;
}
To bind a form I should use this format.
{
"token" : "11",
"build" : "relase"
"deviceUuid" : "1010",
"deviceType" : "ios"
}
But I want this.
{
"token" : "11",
"build" : "relase"
"device_uuid" : "1010",
"device_type" : "ios"
}
How can I use underscore filed in json format for binding form?
I searched whole month but I couldn't find a solution. :(