Package sk.antons.json.parse
Class JsonParser
- java.lang.Object
-
- sk.antons.json.parse.JsonParser
-
public class JsonParser extends Object
Json text parser. Converts json data from string format to tree of objects.- Author:
- antons
-
-
Constructor Summary
Constructors Constructor Description JsonParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonValueparse(Reader json)Parse json from reader.static JsonValueparse(String json)Parse json from string.static JsonValueparse(JsonSource source)Parse json from source.
-
-
-
Method Detail
-
parse
public static JsonValue parse(String json)
Parse json from string.- Parameters:
json- string with json obejct array of just literal.- Returns:
- Json value representing the json data.
-
parse
public static JsonValue parse(Reader json)
Parse json from reader.- Parameters:
json- reader with json obejct array of just literal.- Returns:
- Json value representing the json data.
-
parse
public static JsonValue parse(JsonSource source)
Parse json from source.- Parameters:
source- json source data.- Returns:
- Json value representing the json data.
-
-