TParamsFile.AsJSONObject Method

Return the current parameters as a JSON object

Unit: Olf.RTL.Params
function AsJSONObject(AClone: boolean): TJSONObject

Parameters

AClone
Type: System.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.

Return Value

Type: TJSONObject