Skip to content

Add method remove(JsonPointer) in ContainerNode (if not JsonNode) #1981

@cowtowncoder

Description

@cowtowncoder

(note: related to #1980)

With addition of JsonPointer, it seems reasonable to allow removal of a node pointed to by expression.

Addition of a method that returns JsonNode removed (or null to indicate none) is simple enough.
But one question is whether this should be added in JsonNode (more convenient) or only in ContainerNode (which is philosophically better, given JsonNode currently only contains read-methods and no modifications).

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0Issue planned for initial 3.0 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions