json.fromList: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added delim parameter.)
mNo edit summary
Line 7: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
json.fromList(strList)]
json.fromList(strList)
</source>
</source>
<source lang="mtmacro" line>
<source lang="mtmacro" line>
json.fromList(strList, delim)]
json.fromList(strList, delim)
</source>
</source>
'''Parameters'''
'''Parameters'''

Revision as of 09:52, 28 April 2009

json.fromList() Function

Introduced in version 1.3b49
Returns a JSON Array from a String List.

Usage

json.fromList(strList)
json.fromList(strList, delim)

Parameters

Example

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

See Also