Packagecom.adobe.serialization.json
Classpublic final class JSONToken
InheritanceJSONToken Inheritance Object



Public Properties
 PropertyDefined By
  type : int
The type of the token.
JSONToken
  value : Object
The value of the token
JSONToken
Public Methods
 MethodDefined By
  
JSONToken(type:int = -1, value:Object = null)
Creates a new JSONToken with a specific token type and value.
JSONToken
  
create(type:int = -1, value:Object = null):JSONToken
[static] Factory method to create instances.
JSONToken
Public Constants
 ConstantDefined By
  token : JSONToken
[static] Reusable token instance.
JSONToken
Property Detail
typeproperty
public var type:int

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

The type of the token.

valueproperty 
public var value:Object

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

The value of the token

Constructor Detail
JSONToken()Constructor
public function JSONToken(type:int = -1, value:Object = null)

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 9.0

Creates a new JSONToken with a specific token type and value.

Parameters
type:int (default = -1) — The JSONTokenType of the token
 
value:Object (default = null) — The value of the token
Method Detail
create()method
public static function create(type:int = -1, value:Object = null):JSONToken

Factory method to create instances. Because we don't need more than one instance of a token at a time, we can always use the same instance to improve performance and reduce memory consumption during decoding.

Parameters

type:int (default = -1)
 
value:Object (default = null)

Returns
JSONToken
Constant Detail
tokenConstant
public static const token:JSONToken

Reusable token instance.

See also