json.toList: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page json.toList to Json.toList without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:22, 9 February 2023

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

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

Parameters

  • jarr - JSON Array
  • delim - Delimiter used in output

Examples

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

Returns

     a,1,g,4