public class JSONParser extends Object
Javascript objects are converted to LinkedHashMap's with the
identifiers being the keys.
Javascript arrays are converted to ArrayList's.
Literal null is just a null value and boolean values are converted to
Boolean's.
Floating point numbers are converted to Double and integers are
converted to Long.
| Modifier and Type | Method and Description |
|---|---|
static Object |
parseJSON(String json)
Parse a string of JSON data.
|
static Object |
parseJSON(String json,
JSONConfig cfg)
Parse a string of JSON data.
|
public static Object parseJSON(String json)
json - the string of JSON data.public static Object parseJSON(String json, JSONConfig cfg)
json - the string of JSON data.cfg - The config object.Copyright © 2015. All rights reserved.