jakartaee / jakartaee/jsonp-api
Json stream API: how to recover from an error?
- Dominant language
- Java
- Stars
- 160
- Forks
- 64
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 4
Description
When there is an error in the application streaming JSON objects via the Json Generator, the only option I currently have is to close the stream and restart. I believe the JSON-P API currently does not provide the possibility to discard the last object (that was partly written) and continue with the stream. What's the best approach? Or should the streaming API be extended to handle error recovery?
--Tom
Contributor guide
Research direction
Start by reading the JSON-P streaming API and Json Generator behavior described in the issue, focusing on how a partly written object affects the stream. Determine whether the existing API supports discarding that object and continuing; done requires a decided, documented recovery approach or a clearly scoped API extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100