Skip to content

Change JsonNode.withObject(String) to work similar to withArray() wrt argument #4096

@cowtowncoder

Description

@cowtowncoder

Describe your Issue

(see #3780 for lengthy background discussion)

New JsonNode.withObject(String) method added in 2.14 only allows for using String that is valid JsonPointer expression. This is different from existing withArray(String) method. While I earlier felt that the new behavior is more sensible, avoiding confusion, it seems many users feel otherwise.

As a consequence I think behavior should be changed for 2.16 to allow for "property-or-expression" -- this should be safe (enough) change and along with #4095 solve the issue.

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