json.fromList: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(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...)
(No difference)

Revision as of 10:07, 24 December 2008

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]