ree to a File:<br><br>
    <pre>
     jsonb.toJson(object, new FileWriter("foo.json"));</pre>
 Writing (serializing) to a Writer:<br><br>
    <pre>
     jsonb.toJson(object, new PrintWriter(System.out));
    </pre>
 </blockquote>

 <p><b>Encoding</b></p>
 <blockquote>
 In deserialization operations (<code>fromJson</code>), encoding of JSON data is detected automatically.
 Use the <a href="../../../javax/json/bind/JsonbConfig.html" title="class in javax.json.bind"><code>JsonbConfig</code></a> API to configur