public interface JSONHandler
| Modifier and Type | Method and Description | 
|---|---|
| void | beginArray()Start of an array | 
| void | beginObject()Start of an object | 
| void | clear()Clear any stored info, i.e. | 
| boolean | hasElement()Check whether a JSON element is available | 
| java.lang.Object | pop()Returns and removes the next successfully created JSON element, throws
 an exception if no such element exists | 
| void | yieldArray()End of an array | 
| void | yieldFalse()Handle a 'false' boolean | 
| void | yieldGarbage(java.lang.String str)Handle garbage. | 
| void | yieldKey()Key has been defined (likely through yieldString()). | 
| void | yieldNull()Handle a 'null' value | 
| void | yieldNumber(double v)Handle a numeric value | 
| void | yieldObject()End of an object | 
| void | yieldSeparator()End of an object member or array element, marked by a comma | 
| void | yieldString(java.lang.String str)Handle a String value. | 
| void | yieldTrue()Handle a 'true' boolean | 
void beginObject()
void yieldObject()
void yieldKey()
void beginArray()
void yieldArray()
void yieldSeparator()
void yieldString(java.lang.String str)
str - stringvoid yieldNumber(double v)
v - numbervoid yieldTrue()
void yieldFalse()
void yieldNull()
void yieldGarbage(java.lang.String str)
To facilitate handling of these two cases, we parse each 'garbage' term as follows:
str - garbage stringboolean hasElement()
java.lang.Object pop()
void clear()