Skip to main content

JsonExport

Type​

function

Summary​

Converts a LiveCode value to a string in JSON format.

Syntax​

JsonExport(<pValue>)

Description​

Use the JsonExport function to convert a value into a string in JSON format.

The JsonExport function is implemented using jsonEncode.

Important

: The JsonExport function has been deprecated and should not be used in new code. Existing code should be updated to use jsonEncode.

Parameters​

NameTypeDescription

pValue

The value to be converted to JSON format.

Examples​

JsonExport([]) -- returns "[]"

Value​

NameTypeDescription

return

The JsonExport function returns a string containing the JSON form of the provided value.

function: jsonEncode, jsonDecode, JsonImport

Compatibility and Support​

Introduced

LiveCode Create 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile