The following example object
{
"result": [
{
"id": "1",
"cat": {
"catfield1": {},
"catfield2": {
"name": "text"
}
},
"dog": {}
},
{
"id": "2",
"cat": {
"catfield1": {
"code": "text",
"name": "text"
},
"catfield2": {
"name": "text"
}
},
"dog": {
"dogfield1": "text",
"dogfield2": "text"
},
"mouse": {
"mousefield1": "text"
}
}
]
Marks dogfield1 and dogfield2 as required, although they only appear once in the array, and not on all of them
The following example object
{ "result": [ { "id": "1", "cat": { "catfield1": {}, "catfield2": { "name": "text" } }, "dog": {} }, { "id": "2", "cat": { "catfield1": { "code": "text", "name": "text" }, "catfield2": { "name": "text" } }, "dog": { "dogfield1": "text", "dogfield2": "text" }, "mouse": { "mousefield1": "text" } } ]Marks
dogfield1anddogfield2as required, although they only appear once in the array, and not on all of them