Skip to content

Non-standard extension? #37

Description

@mpnally

One of the limitations of JSON patch that causes me problems in practice is that I can't add to an array if it isn't there and I also can't add the array without blowing away any existing array. [Perhaps there is a way of doing this that I don't know.]

I noticed that it is trivial to modify the code to allow '/foo/-' to create the array if it's not there. I understand that implementing non-standard extensions to JSON patch is going to create a lot of resistence, but it does make it a lot more useful. So I thought I'd see what the reaction to the idea was.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions