format.JsonPrinter
JsonPrinter
package haxe-format
Available on all platformsAn implementation of JSON printer in Haxe.
This class is used by
haxe.Json
when native JSON implementation is not available.See:
Static methods
static print (o:Dynamic, ?replacer:Dynamic ‑> Dynamic ‑> Dynamic, ?space:String):String
Encodes o
's value and returns the resulting JSON string.
If replacer
is given and is not null, it is used to retrieve actual object to be encoded. The replacer
function takes two parameters, the key and the value being encoded. Initial key value is an empty string.
If space
is given and is not null, the result will be pretty-printed. Successive levels will be indented by this string.
© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/haxe/format/JsonPrinter.html