I have a two json objects like this below,
Json 1:
{
"data": {
"firstName": "xxx",
"lastName": "yyy",
"age": "29"
}
}
Json 2:
{
"data": {
"firstName": "aaa",
"lastName": "yyy",
"age": "30",
"location": "USA"
},
"meta": {
"browser": "chrome",
"ip": "999.999.999"
}
}
How can i compare properties of json 1 with json 2 and return the bool value if values are equal ?
From the above example the firstName value is different in both json objects so the result will return bool value as false , otherwise it will return true.
Please help, thanks in advance !!!