JSON Encoding Functions
The functions described in this section encode lists, maps, or UDRs to JSON-formatted strings.
jsonEncodeList
This function encodes a list to a JSON formatted string.
string jsonEncodeList ( list<any>list)Parameter | Description |
|---|---|
| The list to encode |
Returns | A JSON formatted string |
jsonEncodeMap
This function encodes a map to a JSON formatted string.
string jsonEncodeMap ( map<string,any> mapParameter | Description |
|---|---|
| The map to encode |
Returns | A JSON-formatted string |
jsonEncodeUdr
This function encodes a UDR to a JSON formatted string.
string jsonEncodeUdr ( DRUDR udr)Parameter | Description |
|---|---|
| The UDR to encode. |
Returns | A JSON-formatted string. |
jsonFormat
This function encodes a value of any type (any) into a JSON-formatted string.
string jsonFormat(any obj)Parameter | Description |
|---|---|
| The object to encode. |
Returns | A JSON formatted string. |