 The following code demonstrates how to access these events:

 <pre>
 <code>
 Event event = parser.next(); // START_OBJECT
 event = parser.next();       // END_OBJECT
 </code>
 </pre>

 <p>
 <b>For example</b>, for the following JSON:
 <pre>
 {
   "firstName": "John", "lastName": "Smith", "age": 25,
   "phoneNumber": [
       { "type": "home", "number": "212 555-1234" },
       { "type": "fax", "number": "646 555-4567" }
    ]
 }
 </pre>

 <p>calls to the method <code>next()</code> result in parse events at