mormot 数据集和JSON互相转换
usesSynVirtualDataSet, mORMotMidasVCL, SynCommons;
procedure TForm1.Button1Click(Sender: TObject);varjson: RawUTF8;begin
json := DataSetToJSON(ADOQuery1);DataSource1.DataSet := JSONToClientDataSet(Self, json);end;