Deprecated, for removal: This API element is subject to removal in a future version.
- 3.21.0 - [#18329] - This shaded third party dependency will be
removed without replacement. Please use any other JSON parser,
instead - e.g. Jackson.
A simplified and stoppable SAX-like content handler for stream processing of
JSON text.
- Author:
- FangYidong<fangyidong@yahoo.com.cn>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanendArray()Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of a JSON array.voidendJSON()Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of JSON processing.booleanDeprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of a JSON object.booleanDeprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of the value of previous object entry.booleanDeprecated, for removal: This API element is subject to removal in a future version.Receive notification of the JSON primitive values: java.lang.String, java.lang.Number, java.lang.Boolean nullbooleanDeprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of a JSON array.voidDeprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of JSON processing.booleanDeprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of a JSON object.booleanstartObjectEntry(String key) Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of a JSON object entry.
-
Method Details
-
startJSON
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of JSON processing. The parser will invoke this method only once.- Throws:
ParseException- - JSONParser will stop and throw the same exception to the caller when receiving this exception.IOException
-
endJSON
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of JSON processing.- Throws:
ParseExceptionIOException
-
startObject
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of a JSON object.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseException- - JSONParser will stop and throw the same exception to the caller when receiving this exception.IOException- See Also:
-
endObject
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of a JSON object.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseExceptionIOException- See Also:
-
startObjectEntry
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of a JSON object entry.- Parameters:
key- - Key of a JSON object entry.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseExceptionIOException- See Also:
-
endObjectEntry
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of the value of previous object entry.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseExceptionIOException- See Also:
-
startArray
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the beginning of a JSON array.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseExceptionIOException- See Also:
-
endArray
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the end of a JSON array.- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseExceptionIOException- See Also:
-
primitive
Deprecated, for removal: This API element is subject to removal in a future version.Receive notification of the JSON primitive values: java.lang.String, java.lang.Number, java.lang.Boolean null- Parameters:
value- - Instance of the following: java.lang.String, java.lang.Number, java.lang.Boolean null- Returns:
- false if the handler wants to stop parsing after return.
- Throws:
ParseExceptionIOException
-