This topic describes the syntax, description, parameters, and return values of JSON functions. This topic also provides examples of these functions.
json_enc
The following table describes the details about this function.
Item | Description |
---|---|
Syntax | json_enc(d)
|
Description | Encodes a dictionary object into a JSON string. |
Parameter | d: the dictionary object that you want to encode. |
Return value | if the function succeeds, a JSON-encoded string is returned. Otherwise, false is returned.
|
Example |
|
json_dec
The following table describes the details about this function.
Item | Description |
---|---|
Syntax | json_dec(s)
|
Description | Decodes a JSON string into a dictionary. |
Parameter | s: the JSON string that you want to decode. |
Return value | If the function succeeds, a dictionary is returned. Otherwise, false is returned.
|
Example |
|