ode><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/IllegalStateException.html" title="class or interface in java.lang" class="external-link">IllegalStateException</a></code> - if writeArray, writeObject, write
     or close method is already called</dd>
</dl