Generate and apply diffs between JSON documents.