JsonObjectCreate Function

Action

Creates an empty JSON object.

It is highly recommended to delete every JSON object from the memory when it is not needed any longer. For every call of JsonObjectCreate should be a call of JsonFree.

Include file

Json.bdh

Syntax

JsonObjectCreate(): number;

Return value

Valid handle to a JSON object.

Example

transaction TMain
var
  jsonObject : number;
begin
  jsonObject := JsonObjectCreate();
  JsonSetStringProperty(jsonObject, "NewProperty", "New String Value");
  
  ...

  JsonFree(jsonObject);
end TMain;