Top  | Previous | Next

system.util.jsonEncode

Description

Takes a Python object such as a list or dict and converts into a json string.

Syntax

system.util.jsonEncode(pyObj)

Parameters

PyObject pyObj - The Python object to encode into JSON such as a Python list, dictionary, or PyDataSet.

Returns

String - The encoded JSON string.

Scope

All

system.util.jsonEncode(pyObj, indentFactor)

Parameters

PyObject pyObj - The Python object to encode into JSON such as a Python list, dictionary, or PyDataSet.

int indentFactor - The number of spaces to add to each level of indentation for prettyprinting

Returns

String - The encoded JSON string.

Scope

All