CreateJSONObject¶
Create a JSON object.
Declaration¶
Source position: fpjson.pp line 825
function CreateJSONObject : TJSONObject; overload; overload;
function CreateJSONObject(const Data: Array of const) : TJSONObject
; overload; overload;
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 TJSONObject.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¶
| Name | Description |
|---|---|
| GetJSONInstanceType | JSON factory: Get the JSONData class types to use. |
| SetJSONInstanceType | JSON factory: Set the JSONData class types to use. |
| GetJSON | Convert JSON string to JSON data structure. |
| CreateJSON | Create a JSON data item. |
| TJSONObject | Class of TJSONObject. |