Hi All,
I am getting below error while passing Json body in the request body.
Error Message: body=
{
“errorMessage” : “Bad JSON request: Unexpected character (’/’ (code 47)): mayb
e a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS
’ not enabled for parser)\n at [Source: com.appnamel.util.Resettabl
eStreamHttpServletRequest$ResettableServletInputStream@642bdc5d; line: 6, column
: 8]”
}
My request body is below:
.exec(http(“Identity_new”)
.post(""“Url”"")
.body(StringBody("""{
“username”:“testuser0004”,
“password”:“testuser0004”,
“userId”:“Location Url” // captured from previous request
“status”: “Active”
}""")))
Please help me to resolve this issue and how I have to enable ALLOW_COMMENTS for parser ?
Regards,
Anitha.