TTMSFNCDataGrid.LoadFromJSONStreamData Method
Loads cell data from a stream containing JSON, using the specified encoding.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Loads cell data from a stream containing JSON, using the specified encoding.
procedure LoadFromJSONStreamData(AStream: TStream; AEncoding: TEncoding; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil ); overload; virtual;
virtual void __fastcall LoadFromJSONStreamData(System::Classes::TStream* AStream, System::Sysutils::TEncoding* AEncoding, System::UnicodeString ARowDataName = System::UnicodeString(), System::UnicodeString AColumnDataName = System::UnicodeString(), TTMSFNCDataGridDataJSONNamesArray AColumnNames = TTMSFNCDataGridDataJSONNamesArray())/* overload */;
Remarks
Same mapping rules as LoadFromJSONData.
Parameters
| Name | Description |
|---|---|
AStream |
Stream containing JSON data. |
AEncoding |
Text encoding used to read the stream. |
ARowDataName |
Name of the JSON value that holds the array of rows; ignored when the root is an array. |
AColumnDataName |
Optional name of the value inside each row object that holds the column values. |
AColumnNames |
Optional names of the row values to load, in column order. |
Overload 2
Loads data from a JSON stream using the default encoding.
procedure LoadFromJSONStreamData(AStream: TStream; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil ); overload; virtual;
virtual void __fastcall LoadFromJSONStreamData(System::Classes::TStream* AStream, System::UnicodeString ARowDataName = System::UnicodeString(), System::UnicodeString AColumnDataName = System::UnicodeString(), TTMSFNCDataGridDataJSONNamesArray AColumnNames = TTMSFNCDataGridDataJSONNamesArray())/* overload */;
Parameters
| Name | Description |
|---|---|
AStream |
Stream containing JSON data. |
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. |