"class or interface in java.lang.reflect">Type</a>&nbsp;runtimeType)
       throws <a href="../../../jakarta/json/bind/JsonbException.html" title="class in jakarta.json.bind">JsonbException</a></pre>
<div class="block">Writes the Java object tree with root object <code>object</code> to a String
 instance as JSON.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>object</code> - The root object of the object content tree to be serialized. Must not be null.</dd>
<dd><code>runtimeType</