Skip to content

Non-standard extension? #37

@mpnally

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions