dharmafly/jsonpatch.js — pull request #4 by jden (2012-10-31 07:48:37+00:00)
Title: JSON Patch draft 6 update

Updated tests and implementation for JSON Patch 6 / JSON Pointer 5 Internet Drafts and related tests. This is still not complete, but it's a first crack. The format for JSON Patch operations reverted to {op: 'operation', path: '/json/pointer', value: 'foo' } format, and `move` and `copy` operators were added. This pull request addresses these changes.

There are some things not addressed in this PR. Specifically, the `test` operation in JSON Patch 6 is not implemented, nor is the `-` notation to signify the end of an array in JSON Pointer. I also want to clean up the implementation and implement a "safe" mode which will treat the original document as immutable and apply the patch to a cloned document.