Static variables

@:value("@~obRef#")staticOBJECT_REFERENCE_PREFIX:String = "@~obRef#"

Static methods

@:value({ useCache : true, style : null })staticencode(obj:Dynamic, ?style:Dynamic, useCache:Bool = true):String

Serializes a dynamic object or an array into a JSON string.

Parameters:

Dynamic
  • The object to be serialized
Dynamic
  • The style to use. Either an object implementing EncodeStyle interface or the strings 'fancy' or 'simple'.

@:value({ stringProcessor : null, fileName : "JSON Data" })staticparse(json:String, fileName:String = "JSON Data", ?stringProcessor:String ‑> Dynamic):Dynamic

Parses a JSON string into a haxe dynamic object or array.

Parameters:

String
  • The JSON string to parse
String

the file name to whic the JSON code belongs. Used for generating nice error messages.