
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="JsonException.html" title="class in jakarta.json">JsonException</a></code> - if a JSON object cannot
     be created due to i/o error (IOException would be
     cause of JsonException)</dd>
<dd><code><a href="stream/JsonParsingException.html" title="class in jakarta.json.stream">JsonParsingException</a></code> - if a JSON object cannot
     be created due to incorrect representation</dd>
<dd><code><a href="https://docs.oracle.com/en/java/