Creator Help

toJSONList

This topic describes the syntax and usage of the toJSONList() function in Zoho Creator

Description

The toJSONList() function converts data (that is in the JSON format) into a List().

Syntax

<string>.toJSONList()

Return Value

Returns (the JSON string as) a list.

Example

In the following code snippet, the attribute "OrderNo" in the JSON-like variable "var_b" has multiple values, which are fetched using the getJSON() function. The toJSONlist() converts them as a list.

var_b="{Name:'Lia Shelton', OrderNo:[343,443,577]}";
info var_b.getJSON("OrderNo").toJSONList();

The output of the above script is: 343,443,577

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com