Method | Defined By | ||
---|---|---|---|
JSONTokenizer(s:String, strict:Boolean)
Constructs a new JSONDecoder to parse a JSON string
into a native object. | JSONTokenizer | ||
Gets the next token in the input sting and advances
the character to the next character after the token
| JSONTokenizer | ||
parseError(message:String):void
Raises a parsing error with a specified message, tacking
on the error location and the original string. | JSONTokenizer | ||
unescapeString(input:String):String
Convert all JavaScript escape characters into normal characters
| JSONTokenizer |
JSONTokenizer | () | Constructor |
public function JSONTokenizer(s:String, strict:Boolean)
Constructs a new JSONDecoder to parse a JSON string into a native object.
Parameterss:String — The JSON string to be converted
into a native object
| |
strict:Boolean |
getNextToken | () | method |
public function getNextToken():JSONToken
Gets the next token in the input sting and advances the character to the next character after the token
ReturnsJSONToken |
parseError | () | method |
public final function parseError(message:String):void
Raises a parsing error with a specified message, tacking on the error location and the original string.
Parameters
message:String — The message indicating why the error occurred
|
unescapeString | () | method |
public function unescapeString(input:String):String
Convert all JavaScript escape characters into normal characters
Parameters
input:String — The input string to convert
|
String — Original string with escape characters replaced by real characters
|