json.fromList: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Correcting JSON Array link.)
Line 3: Line 3:
|version=1.3b49
|version=1.3b49
|description=
|description=
Creates a [[Macros:json array|json array]] from a [[Macros:string list|string list]].  
Creates a [[JSON Array]] from a [[Macros:string list|string list]].  


|usage=
|usage=

Revision as of 00:32, 5 April 2009

json.fromList() Function

Introduced in version 1.3b49
Creates a JSON Array from a string list.

Usage

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

Example

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

Returns

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