json.toList

From RPTools Wiki
Revision as of 10:13, 24 December 2008 by Craig (talk | contribs) (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....)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function json.toList

Introduced in MapTool 1.3b49

Creates a string list from a json array.

Usage

[h: jarr = json.toStrProp(jobj)]


Examples

  [h:a=json.fromList("a,1,g,4")][r:json.toList(a)]
  [h:a=json.fromStrProp("a=1;b=44;c=12")] [r:json.toList(a)]

Returns

 a=1;c=12;b=44
 a,c,b