.html" title="interface in javax.json.stream">JsonGenerator</a>&nbsp;generator,
               <a href="../../../../javax/json/bind/serializer/SerializationContext.html" title="interface in javax.json.bind.serializer">SerializationContext</a>&nbsp;ctx)</pre>
<div class="block">Serializes object into JSON stream.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>obj</code> - Object to serialize.</dd>
<dd><code>generator</code> - JSON generator used to write java object to JSON stream.