For JSON service response, if we have a null value, Cerberus cannot find the element.
For example, if we have the following response:
{
"status": "success",
"data": null,
"message": "Successfully! Record has been fetched."
}
Cerberus cannot get the value for $.data:
Currently, the only way to bypass this error is to find all elements $..data and it will return the value in an array:
For JSON service response, if we have a null value, Cerberus cannot find the element. For example, if we have the following response:
Cerberus cannot get the value for $.data: Currently, the only way to bypass this error is to find all elements $..data and it will return the value in an array:
Test case implemented for debug on online version: https://prod.cerberus-testing.com/TestCaseScript.jsp?test=ITTA&testcase=0004A
It works fine for number, string and true/false values. Tested in Cerberus version 4.16 and 4.17