json.fromList

From RPTools Wiki
Revision as of 10:07, 24 December 2008 by Craig (talk | contribs) (New page: ==Function json.fromList== '''Introduced in MapTool 1.3b49''' Creates a Macros:json array from a Macros:string list. ===Usage=== <source lang="mtmacro" line> [h: jarr = jso...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function json.fromList

Introduced in MapTool 1.3b49

Creates a json array from a string list.

Usage

[h: jarr = json.fromList(strProp)]


Examples

[r:json.fromList("a,1,g,4")]

Returns

  ["a",1,"g",4]