dharmafly/jsonpatch.js — Issue #1: how about the root path?
Author: ashtuchkin
Created: 2011-12-01 22:49:49+00:00
State: open

Hi and first of all thanks for the lib!

According to JSON Pointer spec, '/' points to the JSON object itself.

Although semantics of add operation on '/' is questionable, the replace and delete operations IMHO are perfectly valid (return ```value``` and ```undefined``` respectively).

Current version of jsonpatch throws PatchApplyError when trying operations on root.

What do you think of adding these?