Hello,
I'm trying to make POST API call using custom REST client code. On execution I'm getting the 400 status code and following error message
{"status":400,"code":"E_INPUT_MESSAGE_NOT_READABLE","message":"The input message is not readable.","details":"Error in parsing the JSON into object class: class com.rest.model.ApplicationSearch;Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value\n at [Source: org.apache.catalina.connector.CoyoteInputStream@4feed296; line: 1, column: 3]"}
Following is my JSON string
String json="{\"properties\" : {\"document_type\": \"LoanApplication\"}}";
This is no "-" in the JSON string. Only "_" is there.
Can anyone tell me what needs to be done to resolve this error.
Thanks.