public final class JsonUtil extends Object
| Modifier and Type | Method | 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 datajsonStringJsonParsingException - if the input is not legal JSON textCopyright © 2018 Oracle. All rights reserved.