Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cowtowncoder opened this issue Aug 22, 2023 · 0 comments

Comments

@cowtowncoder
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant