eclipse-ee4j / eclipse-ee4j/parsson

JsonParserImpl's skipArray() and skipObject() not working according to jakarta.json.stream.JsonParser description

Open
#112 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17
Forks
25
PR merge metrics
No merged PRs in 30d

Description

If you look at the description of above mentioned methods in interface, you will see, that the array or the object should be skipped if the parser is inside the array's or object's context. Not at the beginning. These methods implemented correctly in the JsonStructureParser, but not in the JsonParserImpl. Here, one can't skip to the end of the array or object if one is already inside the context.

Found this during the test for this Yasson ticket [630](https://github.com/eclipse-ee4j/yasson/issues/630). I'll create a PR with changes to correct this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.