TTMSFNCDataGrid.LoadFromJSONData Method
Loads data from a JSON file using the specified encoding; ARowDataName/AColumnDataName/AColumnNames map JSON keys to grid rows and columns.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Loads data from a JSON file using the specified encoding; ARowDataName/AColumnDataName/AColumnNames map JSON keys to grid rows and columns.
procedure LoadFromJSONData(AFileName: string; AEncoding: TEncoding; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil); overload; virtual;
Parameters
| Name | Description |
|---|---|
AFileName |
Full path to the JSON file. |
AEncoding |
Text encoding used to read the file. |
ARowDataName |
JSON key whose value is the array of row objects. |
AColumnDataName |
JSON key within each row object that holds column values. |
AColumnNames |
Array of JSON key names mapped to grid column indices. |
Overload 2
Loads data from a JSON file using the default encoding; ARowDataName/AColumnDataName/AColumnNames map JSON keys to grid rows and columns.
procedure LoadFromJSONData(AFileName: string; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil); overload; virtual;
Parameters
| Name | Description |
|---|---|
AFileName |
Full path to the JSON file. |
ARowDataName |
JSON key whose value is the array of row objects. |
AColumnDataName |
JSON key within each row object that holds column values. |
AColumnNames |
Array of JSON key names mapped to grid column indices. |