Sign in Join
FPDoc Onlineexperiment

CreateJSON function

In unit fpJson

Create a JSON data item.

Declaration

pascal
function CreateJSON: TJSONNull

Function result

The TJSONData descendant representing the value in Data.

Description

CreateJSON will create a JSON Data item depending on the type of data passed to it, and will use the classes returned by GetJSONInstanceType to do so. The classes to be used can be set using the SetJSONInstanceType.

The JSON parser uses these functions to create instances of TJSONData.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.