ig.withAdapters(new BoxToCrateAdapter&lt;Integer&gt;(){});
 </code>
 </pre></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">JsonbAdapter&lt;Original,<wbr>Adapted&gt;</span></div>
<div class="block"><p>Allows to define custom mapping for given java type. The target type could be string or some
 mappable java type.</p>

 <p>On serialization "Original" type is converted into "Adapted" type. After that "Adapted" type is seria