be called only once for a writer instance.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>object</code> - JSON object that is to be written to the output source</dd>
<dt>Throws:</dt>
<dd><code><a href="JsonException.html" title="class in jakarta.json">JsonException</a></code> - if the specified JSON object cannot be
     written due to i/o error (IOException would be cause of JsonException)</dd>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateEx