I am calling a rest service which returns a JSON Object and one the field is error-codes
. Now how do I declare a variable in Java as '-' is not allowed.
The JSON is as follows
{
"success": true|false,
"error-codes": [...]
}
This didn't worked
private List<ErrorCodes> errorCodes;
nor
private List<ErrorCodes> errorcodes;