Do you know of a good library for generating a patch from two JSON structures that, when applied to structure A, would produce structure B?
Here is slightly cleaner one that I plan to submit as a feature to Backbone. It assumes underscore.js is present: https://github.com/bruth/backbone/commit/a7f8bd3d9fa06a63cf4... Here is a JSFiddle example: http://jsfiddle.net/bruth/pwpNw/ (Open up the console to see the output)
EDIT: Add JSFiddle example for second implementation