 For example:
 <pre><code>
 JsonReader jsonReader = Json.createReader(...);
 JsonObject object = jsonReader.readObject();
 jsonReader.close();
 </code></pre>

 It can also be built from scratch using a <a href="JsonObjectBuilder.html" title="interface in jakarta.json"><code>JsonObjectBuilder</code></a>.

 <p>For example 1: An empty JSON object can be built as follows:
 <pre><code>
 JsonObject object = Json.createObjectBuilder().build();
 </code></pre>

 For example 2: The following JSON
 <pre><code>
 {
    