json.toStrProp: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function json.toStrProp== '''Introduced in MapTool 1.3b49''' Creates a Macros:string list from a Macros:json array. ===Usage=== <source lang="mtmacro" line> [h: jarr = js...) |
No edit summary |
||
Line 5: | Line 5: | ||
'''Introduced in MapTool 1.3b49''' | '''Introduced in MapTool 1.3b49''' | ||
Creates a [[Macros:string list|string list]] from a [[Macros:json array|json array]]. | Creates a [[Macros:string property list|string list]] from a [[Macros:json array|json array]]. | ||
===Usage=== | ===Usage=== |
Revision as of 10:11, 24 December 2008
Function json.toStrProp
Introduced in MapTool 1.3b49
Creates a string list from a json array.
Usage
[h: jarr = json.toStrProp(jobj)]
Examples
[h:a=json.fromStrProp("a=1;b=44;c=12")] [r:json.toStrProp(a)]
[h:a=json.fromList("a,1,g,4")][r:json.toStrProp(a)]
Returns
a=1;c=12;b=44 0=a;1=1;2=g;3=4