TJSONData.Clone¶
Duplicate the value of the JSON data.
Declaration¶
Source position: fpjson.pp line 188
public
function TJSONData.Clone : TJSONData; virtual; abstract;
Description¶
Clone returns a new instance of the TJSONData descendent that has the same value as the instance, i.e. the AsJSON property of the instance and its clone is the same.
Note that the clone must be freed by the caller. Freeing a JSON object will not free its clones.
Errors¶
Normally, no JSON-specific errors should occur, but an EOutOfMemory exception can be raised.
See also¶
| Name | Description |
|---|---|
| Clear | Clear the raw value of this data object. |
| EOutOfMemory |