diff --git a/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java b/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java index c8f7941b2adf0..4d191b7115550 100644 --- a/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java +++ b/extensions/jsonb/runtime/src/main/java/io/quarkus/jsonb/JsonbProducer.java @@ -11,6 +11,7 @@ import io.quarkus.arc.All; import io.quarkus.arc.DefaultBean; +import io.quarkus.jsonp.JsonProviderHolder; @Singleton public class JsonbProducer { @@ -30,6 +31,6 @@ public JsonbConfig jsonbConfig(@All List customizers) { @Singleton @DefaultBean public Jsonb jsonb(JsonbConfig jsonbConfig) { - return JsonbBuilder.create(jsonbConfig); + return JsonbBuilder.newBuilder().withProvider(JsonProviderHolder.jsonProvider()).withConfig(jsonbConfig).build(); } }