lass="block">Writes the Java object tree with root object <code>object</code> to a String
 instance as JSON.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/json/bind/Jsonb.html#toJson-java.lang.Object-java.io.OutputStream-">toJson</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;