TParamsFile.AsJSONObject Method

Definition

Return the current parameters as a JSON object

Delphi
function AsJSONObject(AClone: boolean = True): TJSONObject

Parameters

AClone
Boolean

If set to True (by default), the result is a clone of actual object. Free it when you have finished to work with it or you'll have memory leaks in your projects. If set to False, the result is a reference to the internal JSON object. All changes are made to it. Don't destroy it or you'll have Access Violation exception.

Returns

TJSONObject