Json Library
Type
library
Description
This script library provides functions for encoding and decoding JSON.
Associated Syntax
Function
| Name | Summary | Syntax |
|---|---|---|
| JsonExport | Converts a LiveCode value to a string in JSON format. | JsonExport(<pValue>) |
| jsonEncodeForDisplay | Converts a value to a string in JSON format, using appropriate whitespace to make it readable. | jsonEncodeForDisplay(<pValue>) |
| JsonImport | Converts a string in JSON format to a LiveCode value. | JsonImport(<pString>) |
| jsonEncodeAscii | Converts a value to a string in JSON format, using only ASCII characters and minimal whitespace. | jsonEncodeAscii(<pValue>) |
| jsonDecodeUtf8 | Converts a binary string, containing utf-8 encoded JSON, to a LiveCode value. | jsonDecodeUtf8(<pJsonUtf8>) |
| jsonEncodeUtf8 | Converts a value to JSON format, encoded as a UTF-8 binary string. | jsonEncodeUtf8(<pValue>) |