[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'fpjson' (#fcl)

TJSONData.Clone

Duplicate the value of the JSON data

Declaration

Source position: fpjson.pp line 159

public function TJSONData.Clone: TJSONData; virtual; abstract;

Function result

A new instance with the same JSON representation

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

Clear

  

Clear the raw value of this data object

EOutOfMemory


Documentation generated on: May 14 2021