"interface in jakarta.json.stream">JsonGenerator</a>&nbsp;createGenerator&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/Writer.html?is-external=true" title="class or interface in java.io" class="externalLink">Writer</a>&nbsp;writer)</pre>
<div class="block">Creates a JSON generator for writing JSON to a character stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>writer</code> - a i/o writer to which JSON is written</dd>
<dt><span class="