public final class JsonUtil extends Object
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 © 2019 Oracle. All rights reserved.