Skip to content
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

should throw JSONPointer:: containsValue an Exception if root or intermediate value not exists #119

Open
sebastian-toepfer opened this issue Dec 17, 2023 · 0 comments

Comments

@sebastian-toepfer
Copy link

The spec doesn't say anything what jsonpointer.containsValue should do if the root or intermediate property not exists in target. But it felt wrong for an exception to be thrown, in my opinion it should just return false.

code says more than a thousand words:

boolean contains = Json.createPointer("/test/value")
  .containsValue(Json.createObjectBuilder().add("value");

should not throw any exception it makes containsValue in my opinion useless.

if you agree with it I will try to provide a pr to 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