Package org.jolokia.json.parser
Class JSONParser
java.lang.Object
org.jolokia.json.parser.JSONParser
Jolokia JSON parser using
Yylex lexer generated from JSON grammar using
JFlex.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMain parse method that extractJSONStructureor primitive value (string, number, boolean or null) from JSON stream.<T> TParse JSON data expecting specific object type.Parse direct string value containing JSON data.<T> TParse JSON string expecting specific object type.
-
Constructor Details
-
JSONParser
public JSONParser()
-
-
Method Details
-
parse
Main parse method that extractJSONStructureor primitive value (string, number, boolean or null) from JSON stream.- Parameters:
reader-- Returns:
- Throws:
ParseExceptionIOExceptionIllegalStateException
-
parse
Parse JSON data expecting specific object type.- Type Parameters:
T-- Parameters:
reader-clazz-- Returns:
- Throws:
ParseExceptionIOException
-
parse
Parse direct string value containing JSON data.- Parameters:
json-- Returns:
- Throws:
ParseExceptionIOException
-
parse
Parse JSON string expecting specific object type.- Type Parameters:
T-- Parameters:
json-clazz-- Returns:
- Throws:
ParseExceptionIOException
-