Functions dedicated to serializing and deserializing data. NOTE: Use json2object wherever possible, it's way more efficient.

Static methods

staticfromJSON(input:String):Dynamic

Convert a JSON string to a Haxe object.

staticfromJSONBytes(input:Bytes):Null<Dynamic>

Convert a JSON byte array to a Haxe object.

@:value({ pretty : true })statictoJSON(input:Dynamic, pretty:Bool = true):String

Convert a Haxe object to a JSON string. NOTE: Use json2object.JsonWriter<T> WHEREVER POSSIBLE. Do not use this one unless you ABSOLUTELY HAVE TO it's SLOW! And don't even THINK about using haxe.Json.stringify without the replacer!