JsonArrayCreate Function

Action

Creates an empty JSON array.

It is highly recommended to delete any JSON array that is no longer needed from the memory. For every call of JsonArrayCreate should be a call of JsonFree.

Include file

Json.bdh

Syntax

JsonArrayCreate(): number;

Return value

Valid handle to a JSON array.

Example

transaction TMain
var
  jsonArray : number;
begin
  jsonArray := JsonArrayCreate();
  JsonArraySetStringElement(jsonArray, 0, "New String Value");
  
  ...

  JsonFree(jsonArray);
end TMain;