I need to validate the value of "@type" attribute in the below response through POSTMAN JS tests.but when am trying to write tests am getting a syntax error(Invalid or unexpected token)
JS Test line:
var jsonData = JSON.parse(responseBody);
console.log(jsonData.ErrorResponse.Result.Error[0].@type)
Response:
{
"ErrorResponse": {
"Result": {
"Error": [
{
"@type": "ErrorDetail",
"StatusCode": "400",
}
]
}
}
}