modules/jooby-yasson/src/main/java/org/jooby/json/Yasson.java
public Yasson doWith(final Consumer<JsonbConfig> configurer) {
    requireNonNull(configurer, "Configurer callback is required.");
    this.configurer = (jsonConfig, conf) -> configurer.accept(jsonConfig);
    return this;
  }
public Yasson doWith(final Consumer<JsonbConfig> configurer) {
    requireNonNull(configurer, "Configurer callback is required.");
    this.configurer = (jsonConfig, conf) -> configurer.accept(jsonConfig);
    return this;
  }
Configurer callback.

<pre>
{
use(new Yasson().doWith((builder, config) {@literal ->} {
builder.withFormatting(true);
// ...
});
}
</pre>

@param configurer A callback.
@return This instance.