json.toList

From MapToolDoc
Jump to: navigation, search

json.toList() Function

Introduced in version 1.3b49

Creates a string list from a JSON Array. If the delimiter is not specified then the default value of ',' is used.

Usage

  1. [h: jarr = json.toList(jarr)]
  2. [h: jarr = json.toList(jarr, delim)]

Examples

  1.   [h:a=json.fromList("a,1,g,4")]
  2.   [json.toList(a)]

Returns

    a,1,g,4