eclipse-ee4j / eclipse-ee4j/parsson
should throw JSONPointer:: containsValue an Exception if root or intermediate value not exists
- Dominant language
- Java
- Stars
- 17
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Research direction
Start at the JsonPointer.containsValue entry point and reproduce the provided /test/value example with a target lacking the root or intermediate property. Trace the exception behavior and add coverage showing that both missing-property cases return false without throwing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100