public final class JsonUtil extends Object
Modifier and Type | Method | Description |
---|---|---|
static javax.json.JsonValue |
toJson(String jsonString) |
Reads the input JSON text and returns a JsonValue.
|
public static javax.json.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
javax.json.stream.JsonParsingException
- if the input is not legal JSON textCopyright © 2018 Oracle. All rights reserved.