java.lang.Object | |
↳ | com.google.gwt.json.client.JSONParser |
Parses the string representation of a JSON object into a set of JSONValue-derived objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
use
parseStrict(String) or
parseLenient(String)
| |||||||||||
Evaluates a trusted JSON string and returns its JSONValue representation.
| |||||||||||
Evaluates a JSON string and returns its JSONValue representation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This method is deprecated.
use parseStrict(String)
or
parseLenient(String)
Evaluates a trusted JSON string and returns its JSONValue representation.
CAUTION! This method calls the JavaScript eval()
function,
which can execute arbitrary script. DO NOT pass an untrusted string into
this method.
This method has been deprecated. Please call either
parseStrict(String)
(for inputs that strictly follow the JSON
specification) or parseLenient(String)
. The implementation of this
method calls parseLenient.
jsonString | a JSON object to parse |
---|
NullPointerException | if jsonString is
null |
---|---|
IllegalArgumentException | if jsonString is empty |
Evaluates a trusted JSON string and returns its JSONValue representation.
CAUTION! This method calls the JavaScript eval()
function, which
can execute arbitrary script. DO NOT pass an untrusted string into this
method.
jsonString | a JSON object to parse |
---|
NullPointerException | if jsonString is
null |
---|---|
IllegalArgumentException | if jsonString is empty
|
Evaluates a JSON string and returns its JSONValue representation. Where
possible, the browser's JSON.parse function
is used. For older
browsers including IE6 and IE7 that lack a JSON.parse
function, the
input is validated as described in RFC 4627 for safety and passed to
eval()
.
jsonString | a JSON object to parse |
---|
NullPointerException | if jsonString is
null |
---|---|
IllegalArgumentException | if jsonString is empty
|