Skip to main content

JSON functions

The following functions and variables are part the DekiScript and MindTouch runtime environment.
 

json.emit(value) : str

Convert DekiScript value to JavaScript Object Notation (JSON) value.

Name Type Description
value any (optional) value to convert


Example 

json.emit(page);

json.format(value) : str

Render JavaScript Object Notation (JSON) value as a pretty string.

Name Type Description
value any (optional) value to convert

json.parse(value) : any

Convert JavaScript Object Notation (JSON) value to a DekiScript value.

Name Type Description
value str (optional) value to convert
  • Was this article helpful?