json-patch-php icon indicating copy to clipboard operation
json-patch-php copied to clipboard

review 'append' op

Open mikemccabe opened this issue 10 years ago • 0 comments

I added an 'append' op to support a use-case in my organization. I think this is a case where the spec was lacking support for a common real-world use. However, it needs review.

From local_tests.json:

{ "comment": "append",
  "doc": [1, 2, 3, 4],
  "patch": [{"op": "append", "path": "/-", "value":[5, 6, 7, 8]}],
  "expected": [1, 2, 3, 4, 5, 6, 7, 8] },

mikemccabe avatar Sep 29 '14 18:09 mikemccabe