Here is the sample json
{
"result": [
{
"hostname": "CDGRPASEAAR001",
"critical": 0,
"minor": 1,
"syslog": 0
},
{
"hostname": "MUMBCHUDAAR001",
"critical": 0,
"minor": 0,
"syslog": 0
},
{
"hostname": "",
"critical": 0,
"minor": 1,
"syslog": 0
},
I am trying below:
And match actualResponse == {result[2].hostname: '##notnull'}
But I am getting this validation message:
reason: actual value has 4 more key(s) than expected