json.toStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 9: Line 9:
===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: jarr = json.toStrProp(jobj)]
[h: strProp = json.toStrProp(jobj)]
</source>
</source>



Revision as of 10:16, 24 December 2008

Function json.toStrProp

Introduced in MapTool 1.3b49

Creates a string list from a json object.

Usage

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


Examples

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

Returns

 a=1;c=12;b=44
 0=a;1=1;2=g;3=4