Package sk.antons.json.parse
Class JsonParser
java.lang.Object
sk.antons.json.parse.JsonParser
Json text parser. Converts json data from string format to tree of objects.
- Author:
- antons
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonParser
public JsonParser()
-
-
Method Details
-
parse
Parse json from string.- Parameters:
json- string with json object array of just literal.- Returns:
- Json value representing the json data.
-
parse
Parse json from reader.- Parameters:
json- reader with json object array of just literal.- Returns:
- Json value representing the json data.
-
parsePrefetched
Parse json from reader. But first it reads as String and than parse it as string. It is faster for small jsnons.- Parameters:
json- reader with json object array of just literal.- Returns:
- Json value representing the json data.
-
parse
Parse json from source.- Parameters:
source- json source data.- Returns:
- Json value representing the json data.
-