I'm trying to compare incoming JSON data to the existing data to see if there are any changes, but for giant objects like:
This doesn't seem to work. I've tried using:Code:[{"date":"2011-09-03 23:06:03","notifier_id":"1","type":"1","unread":"0"},{"date":"2011-09-05 00:37:46"}] if (JSON.stringify(oldData) == JSON.stringify(newData))
but that ignores the objects properties and returns something like 22%5Bobject%20Object%5D%2C%5BobjectCode:escape("'" + JSON.stringify(W.notification.list + "'"))
I'm sure there's got to be an easier way, if anyone has any ideas, please shoot


Reply With Quote

Bookmarks