json-api/json-api — pull request #91 by guillec (2013-05-23 05:31:11+00:00)
Title: Fix JSON Patch operation paths

I found this error in all the Patch operation examples:

If the target document is:
{
"photos": [{
"id": "1",
"title": "Productivity",
"src": "http://example.com/productivity.png"
}]
}

And the JSON Patch document is this
[
{ "op": "replace", "path": "/src", "value": "http://example.com/hamster.png" }
]

"/src" wont be found.

We need to parse from "photos" no?
The paths should be something like so /photos/0/keep-drilling-down