I have two jsons array responses with same data but the attributes are different. How to compare this kind of jsons.
json 1: comments: [ { "onetag1": "1", "onetag2": "2" }, { "onetag11": "3", "onetage12": "4" } ]
json 2:
newcommentslist: [ { "newtag2": "2", "newtag1": "1" }, { "newtag11": "3", "newtage12": "4" } ]