Array (Json function)

From m204wiki
Revision as of 21:12, 17 February 2015 by Alex (talk | contribs)
Jump to navigation Jump to search

Create an Array JSON object (Json class)

[Introduced in Model 204 7.6]


This function creates a Json object of the array type.

Syntax

%json = [%(Json):]Array[( [itemList])]

Syntax terms

%jsonJson object
[%(Json):] The optional class name in parentheses denotes a virtual constructor. See "Usage notes", below, for more information about invoking a virtual constructor.
itemList Zero or more Json objects (including null) that become the arrays original items.

Usage notes

  • If the array is to be dynamically populated, it might be easiest to simply specify Array with no parameters and ad items with the Add function.
  • The added Json objects can be a mix of Json object types.

Examples

See also