public class JsonUtil extends Object
Constructor and Description |
---|
JsonUtil() |
Modifier and Type | Method and Description |
---|---|
static JsonValue |
toJson(String jsonString)
Reads the input JSON text and returns a JsonValue.
|
public static JsonValue toJson(String jsonString)
For convenience, single quotes as well as double quotes are allowed to delimit JSON strings. If single quotes are used, any quotes, single or double, in the JSON string must be escaped (prepend with a '\').
jsonString
- the input JSON datajsonString
JsonParsingException
- if the input is not legal JSON textCopyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Comments to : [email protected]