Skip to content

Create a JsonbConfig from an existing Jsonb instance #209

Open
@kaqqao

Description

@kaqqao

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

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions