jakartaee / jakartaee/jsonb-api
Add a config option to allow empty values or not
- Dominant language
- Java
- Stars
- 95
- Forks
- 41
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 35
Description
When serializing an object, Jackson has some configuration to filter the NULL, empty values, but it seems Jsonb config only includes a `withNullValues` option, and there is no option to ignore empty values, such as:
* empty string, including whitespace, \t\r\n etc.
* empty collection/map
* empty array
Contributor guide
Research direction
No source file or test is named in the issue. Start by reviewing JSON-B configuration and serialization behavior, then define how an empty-value option should treat whitespace-only strings, empty collections and maps, and empty arrays; done means the configuration and its behavior are specified and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100