SDAC

TMemDataSet.SaveToJSON Method

Saves the current dataset data to a file in the JSON format.

Class

TMemDataSet

Syntax

procedure SaveToJSON(const FileName: string; Options: TJsonOptions = []); overload;

Parameters
FileName
Holds the name of a destination file.
Options
Holds additional options used when saving the dataset. See TJsonOptions for details. By default, no additional options are set.

Remarks

Call the SaveToJSON method to save the current dataset data to a file in the JSON format.

If the destination file already exists, it is overwritten. It remains open from the first call to SaveToJSON until the dataset is closed. Other applications can read this file while it is open, but they cannot write to it.

See Also

© 1997-2025 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback