jakartaee / jakartaee/jsonb-api

Create a JsonbConfig from an existing Jsonb instance

Open
#209 6 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.