Skip to content

Removes are completed sequentially, leading to unexpected results.  #23

@jonkeegan

Description

@jonkeegan

Example:

 {"mydata": ["apple", "orange","pear", "lemon"]} 

With the following operation:

[{"op":"remove","path":"/mydata/0"},{"op":"remove","path":"/mydata/2"}]

The result is:

 { "mydata": ["orange","pear"] }

Rather than the expected:

 { "mydata": ["orange", "lemon"] }

See here:
java-json-tools/json-patch#11 (comment)

Related thread: java-json-tools/json-patch#11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions