convert list to JSON()
This function returns a JSON string that is created from the contents of list a. See examples.
Parameters
|
Parameter |
Description |
|
a |
Name of the list. |
|
b |
(optional) If true, the JSON string is returned in pretty print format. Default: false. |
|
c |
(optional) If false, certain characters (e.g. ", <, >) are replaced by Unicode escape sequences. If true, this is not done, except for the character ", which is replaced by \u0022. Default: false. |
Examples
Given is the list mylist with the content <111>, 222, 333. The list unknown does not exist.
|
Parameter a |
Parameter b |
Parameter c |
Result |
|
mylist |
|
false |
["\u003c111\u003e","222","333"] |
|
mylist |
|
true |
["<111>","222","333"] |
|
unknown |
|
|
[ ] |