toMap
Table of Contents
Overview
The toMap function takes a JSON formatted text as an argument, and returns a key-value pair.
Return Type
- KEY-VALUE
Syntax
<variable> = <json_text>.toMap();
where,
Parameter | Data type | Description |
<variable> | KEY-VALUE | The variable which will contain the converted key-value pairs. |
<json_text> | TEXT | The JSON formatted text that needs to be converted to key-value pairs. Note:
|
Examples
products = "{company:Zoho, product:Creator}"; info products.toMap(); // Returns the key-value pair {"product":"Creator","company":"Zoho"}