convert map to JSON()
This function returns a JSON string that is created from the contents of map a. See examples.
Parameters
Parameter |
Description |
a |
Name of the map. |
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
Let us assume that the map mymap contains a=<aaa>, b=bbb, c=ccc. The map unknown does not exist.
Parameter a |
Parameter b |
Parameter c |
Result |
mymap |
|
false |
{"a":"\u003caaa\u003e","b":"bbb","c":"ccc"} |
mymap |
|
true |
{"a":"<aaa>","b":"bbb","c":"ccc"} |
unknown |
|
|
{ } |