Packagestarlingbuilder.engine.format
Classpublic class StableJSONEncoder
InheritanceStableJSONEncoder Inheritance Object

A JSON encoder that can generate stable output from the same as3 object. This class is modified from the JSON library of as3corelib.

See also

http://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/serialization/json/JSONEncoder.as


Public Methods
 MethodDefined By
  
stringify(data:Object, space:int = 2):String
[static] Stringify method
StableJSONEncoder
Method Detail
stringify()method
public static function stringify(data:Object, space:int = 2):String

Stringify method

Parameters

data:Object — plain as3 object
 
space:int (default = 2) — space for indention

Returns
String — output as string