Monday, June 30th, 2008
Category: JSON
, Utility
<
>p
>Tom Robinson has built a useful utility,
JSON Diff, which gives you a graphical look at the difference.

Changed portions are displayed in yellow. Additions are displayed in green. Deletions are displayed in red.
The visualization is live itself, so you can move around the nodes using the triangles.
- Altova updates MissionKit
Altova updated its XML, database and UML tool suite to modernize its...
- Breaking OpenLaszlo loose from XML data
OpenLaszlo is a development platform that allows you to create rich internet applications which execute on several runtimes, including Flash and...
- Using JSON for Ajax security
Douglas Crockford, creator of JavaScript Object Notation (JSON), advocates using it to improve the security of Ajax applications, but he cautioned...
- XAware releases XAware 5.4
XAware releases XAware 5.4, an open source product designed to simplify access to and from external data sources within a...
- Week difference
This tip provides a function module that helps you calculate the number of weeks between two...
Not sure why it restricts itself to just JSON, but very handy! Thanks.
FF2
too much recursion
typeofReal(“v”)jsondiff (line 127)
compareTree(“v”, null, “0″, li)jsondiff (line 53)
compareTree(“v”, null, “0″, li)jsondiff (line 113)
compareTree(“v”, null, “0″, li)jsondiff (line 113)
compareTree(“v”, null, “0″, li)
I like the idea, but what is it practically good for?
keitha: Yeah its recursive so it will die on really deep JSON structures. Was the JSON you tried really big? I could rewrite it to not be recursive, but I don’t think most people will run into the limit.
AndreasBarthazi: I wrote it because I was sick of manually looking through strings of JSON for the differences. I needed it, I thought others might too.
I made a JSON diff algorithm some time back. I argue for its uses in the short article I wrote about it.
My diff algorithm even handles cyclic references in the JSON objects (deep objects).
See http://michael.hinnerup.net/blog/2008/01/15/diffing_json_objects/