format.JsonPrinter

JsonPrinter

package haxe-format

Available on all platforms

An 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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部