public final class JsonParser
extends java.lang.Object
Java.asJSONCompatible(JSON.parse(json))
. Use this instead of merely eval
-ing
untrusted input.
Note: Java.asJSONCompatible is only available in Java 1.8.0_60 or later.
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
parse(java.lang.String json) |
static java.lang.String |
quote(java.lang.String string)
Returns a quoted String suitable to use in JSON.
|