Make JSON Array Function

$MakeJSONArray generates a JSON-style array: [item,item,...,item].

The function has following parameters:

  • ID item ID, unique positive integer value for references.
  • Object Name optional string, name of object as a constant or as a pattern.
  • Is pattern 1 or true if the engine have to use object name as a pattern. Default (empty string) or any another value means name is constant.
  • Value definition is an integer reference item(s) ID (as array of items between '[' and ']' like [3] or [2,3]) or pattern between '(' and ')'.
  • Repeater, N for 0 to N items, =N for exact N values or N:M for N to M values.


  1. $MakeJSONArray(1,,,12,=5) generates array of 5 items, Each item has reference number 12.
  2. $MakeJSONArray(2,HEX,,(XXXX),2:3) generates an object HEX with array of 2 to 3 items. Each item is a sequence of 4 hexadecimal digita like {"HEX":[128F,4FB0,AB82]}