json.toList: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function json.toList== '''Introduced in MapTool 1.3b49''' Creates a Macros:string list from a Macros:json array. ===Usage=== <source lang="mtmacro" line> [h: jarr = json....) |
No edit summary |
||
Line 9: | Line 9: | ||
===Usage=== | ===Usage=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: jarr = json. | [h: jarr = json.toList(jarr)] | ||
</source> | </source> | ||
Line 15: | Line 15: | ||
===Examples=== | ===Examples=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h:a=json. | [h:a=json.toList("a,1,g,4")][json.toList(a)] | ||
</source> | </source> | ||
Returns | Returns | ||
a,1,g,4 | |||
Revision as of 10:16, 24 December 2008
Function json.toList
Introduced in MapTool 1.3b49
Creates a string list from a json array.
Usage
[h: jarr = json.toList(jarr)]
Examples
[h:a=json.toList("a,1,g,4")][json.toList(a)]
Returns
a,1,g,4