nterface in java.io" class="external-link"><code>OutputStream</code></a> and <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/Writer.html" title="class or interface in java.io" class="external-link"><code>Writer</code></a>).

 <p>
 The following example demonstrates how write an empty JSON object:
 <pre>
 <code>
 JsonWriter jsonWriter = Json.createWriter(...);
 jsonWriter.writeObject(Json.createObjectBuilder().build());
 jsonWriter.close();
 </code>
 </pre>

 <p>
 The class <a h