There is one test in tests.js that cannot be parsed as a JSON document:
{
"comment": "A.13 Invalid JSON Patch Document",
"doc": {
"foo": "bar"
},
"patch": [
{ "op": "add", "path": "/baz", "value": "qux", "op": "remove" }
],
"error": "operation has two 'op' members"
}
First value assignment ("op": "add") is simply ignored by a standard JSON parser, so this condition is really untestable. I suggest to remove this test from the spec.