jakartaee / jakartaee/jsonb-api
Create a JsonbConfig from an existing Jsonb instance
- Dominant language
- Java
- Stars
- 95
- Forks
- 41
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 35
Description
It is occasionally necessary to clone an existing `Jsonb` instance, and optionally override a specific setting. Would it be possible to add a method like `Jsonb#getConfig` that returns `JsonbConfig`?
**Usage example**
```java
JsonbConfig customConfig = originalJsonb.getConfig()
.withPropertyNamingStrategy(new CustomNamingStrategy());
Jsonb customJsonb = JsonbBuilder.create(customConfig);
```
(I replaced the example. The original was drawing attention away from the central point.)
Contributor guide
Research direction
Start by reviewing the Jsonb and JsonbConfig API definitions and the existing comment discussion. Define the behavior for creating a JsonbConfig from an existing Jsonb and overriding a setting; done means the proposed API preserves the original configuration while allowing the usage shown in the issue.
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
- Mostly clear
- Newbie friendliness
- 35/100