haXe API Documentation
Back |
Indexclass haxe.Serializer
Available in flash, neko, js, flash9, php, cpp
- var useCache : Bool
- var useEnumIndex : Bool
- function new() : Void
- function serialize(v : Dynamic) : Void
- function serializeException(e : Dynamic) : Void
- function toString() : String
- static var USE_CACHE : Bool
-
If the values you are serializing can contain
circular references or objects repetitions, you should
set USE_CACHE to true to prevent infinite loops.
- static var USE_ENUM_INDEX : Bool
-
Use constructor indexes for enums instead of names.
This is less reliable but more compact.
- static function run(v : Dynamic) : String
-
Serialize a single value and return the string.
Back |
Index