TJSON
Base type for JSON objects.
Methods
Method SaveString:String(flags:Int = 0, indent:Int = 0, precision:Int = 17)
Returns the JSON representation of the object as a String, or NULL on error.
Valid flags include JSON_COMPACT, JSON_ENSURE_ASCII, JSON_SORT_KEYS, JSON_PRESERVE_ORDER, JSON_ENCODE_ANY and JSON_ESCAPE_SLASH.
Method SaveStream:Int(stream:TStream, flags:Int = 0, indent:Int = 0, precision:Int = 17)
Writes the JSON representation of the object to the stream output.
The stream should already be open for writing. Valid flags include JSON_COMPACT, JSON_ENSURE_ASCII, JSON_SORT_KEYS, JSON_PRESERVE_ORDER, JSON_ENCODE_ANY and JSON_ESCAPE_SLASH.
Functions
Function Load:TJSON(data:Object, flags:Int = 0, error:TJSONError Var)
Loads JSON text from a String or TStream.
The stream should already be open for reading. Valid flags include JSON_REJECT_DUPLICATES, JSON_DISABLE_EOF_CHECK, JSON_DECODE_ANY, JSON_DECODE_INT_AS_REAL and JSON_ALLOW_NUL.