Sign in Join
FPDoc Onlineexperiment

CreateJSONObject function

In unit fpJson

Create a JSON object.

Declaration

pascal
function CreateJSONObject: TJSONObject; overload

Function result

The TJSONObject instance representing Data.

Description

CreateJSONObject retrieves the class registered to represent JSON object data, and creates an instance of this class, passing Data to the constructor. For the Data array the same type conversion rules as for the Create constructor apply.

Errors

if one of the elements in Data cannot be converted to a JSON structure, an exception will be raised.

See also

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