I have API that gives me every day a new JSON file, now I need to compare this JSON with my JSON to get what's new in to show updates to the user
I can get the new items and deleted items but the challenge here is how to detect the items are updated in value
API JSON
[
{
"id": 10,
"title": "delectus aut autem",
"completed": false
},
{
"id": 2,
"title": "**som new details here i need to detect**",
"completed": true
},
{
"id": 3,
"title": "fugiat veniam minus",
"completed": true
}
]
MyJSON
[
{
"id": 2,
"title": "<strike>the old data</strike>",
"completed": false
},
{
"id": 3,
"title": "fugiat veniam minus",
"completed": false
}
]