Hi folks,
When i parse the json body by pm.response.json() I am getting ( JSONError: Unexpected token ‘{’ ) This error , My response will be in chunked- JSON format.
Kindly Help me how can i parse the response and check for a value in the response via test scripts.
Response sample :- {
“groups”: [
{
“name”: “My Company”,
“objId”: “ttt-tt-tt-tt-tt”
},
{
“name”: “Test123 my company test”,
“objId”: “ttt-yy-yy-yy-tttt”
}]
}
{
“groups”: [
{
“name”: “My Company”,
“objId”: “ttt-tt-tt-tt-tt”
},
{
“name”: “Test123 my company test”,
“objId”: “ttt-yy-yy-yy-tttt”
}]
}