json.toStrProp

From MapToolDoc
Jump to: navigation, search

json.toStrProp() Function

Introduced in version 1.3b49

Creates a string list from a json object. With the specified delimiter, if a delimiter is not provided then the default value of ';' is used.

Usage

  1. [h: strProp = json.toStrProp(jobj)]
  2. [h: strProp = json.toStrProp(jobj, delim)]

Example

  1.   [h:a=json.fromStrProp("a=1;b=44;c=12")] [r:json.toStrProp(a)]
  2.   [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