jakartaee / jakartaee/jsonb-api
Allow ignoring errors when deserializing null value into primitives
- Dominant language
- Java
- Stars
- 95
- Forks
- 41
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 35
Description
In Jackson, developers can ignore null values in deserialization of the primitive types by setting the `FAIL_ON_NULL_FOR_PRIMITIVES` configuration to false. Recently I've been asked by a couple of developers who were migrating their code to json-b, about our solution to support this issue. Unfortunately there is no way to achieve the same result in json-b (except maybe by providing deserializers for all primitive types that's totally non-sense).
Is this something that is discussed previously and is not in jsonb due to technical/design issues? If the anser is no, do you think we can consider it as an option for upcoming versions?
Contributor guide
Research direction
Start by reviewing the issue discussion and the JSON-B behavior for deserializing null into primitive types. Determine whether an opt-out configuration comparable to Jackson's FAIL_ON_NULL_FOR_PRIMITIVES is technically and semantically feasible; done would require a decided proposal for an upcoming version.
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