JsonExport

Typehandler
Dictionarylibrary.json
LibraryJSON Library
Syntax
JsonExport(<pValue>)
Associationscom.livecode.library.json
Summary

Format a LiveCode value as JSON text

Parameters
NameTypeDescription
pValue

A LiveCode value (Array, List, String, Number, Boolean, or nothing)

Values
NameTypeDescription
return

A string containing JSON-formatted text.

Description

JsonExport is used to convert a LiveCode value into data encoded in JSON format. If pValue is of a type that cannot be converted to JSON, an error is thrown.

Tagsjson,library,json