Hello people.
My api returns the following json:
{
"code": 200,
"status": "success",
"data": {
"threatChanges": {
"229": {
"1395": {
"id": 1395,
"value": "-6.50",
"color": "",
"result": "-6.50",
"levelId": "",
"dimensionType": 1
}
}
}
}
}
It has numbers in the json levels, but when trying to validate it in postman it does not recognize them.
This is the test:
pm.test("Validación", function () {
pm.expect(jsonData.data.threatChanges.229.1395.id).to.eql(1395);
});
Postman detects me as an error:
How can I perform this validation?