Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Replace operation on Array is incorrectly parsed #16

Open
martypitt opened this issue Jan 4, 2015 · 0 comments
Open

Replace operation on Array is incorrectly parsed #16

martypitt opened this issue Jan 4, 2015 · 0 comments

Comments

@martypitt
Copy link

Given the following JsonPatch (modelled as a Jackson ArrayNode)

[{"op":"replace","path":"/stories","value":[{"id":"story1420386726248.278010"}]}]

when parsed into a Patch, the value of the ReplaceOperation is null

To parse, I'm simply doing:

Patch patch = new JsonPatchMaker().fromJsonNode(jsonPatch);

Screenshot of the debug session:

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant