I want to compare received JSON data to a JSON 'template', and if it differs in structure (not in data itself) then do something,like discarding that JSON.
Template:
{ "data":{ "id":"1", "cmd":"34" } Succesfull Json:
{ "data":{ "id":"15", "cmd":"4" } Unsuccesfull Json:
{ "data":{ "id":"15" } This is only an example, the JSON to evaluate is going to be larger, and I want to avoid checking if each property exists. (This is possible in other languages, hence this question)