How it works...
Under each button is a particular feature provided by the unit MVCFramework.DataSet.Utils. The helper serializes data in JSON format using a simple object or array of objects. To be clear, a single record will be serialized as a JSON object while a full dataset (or a set of records) is serialized as a JSON array containing JSON objects, one for each serialized record. In the uses clause of the form, there is a reference to the unit MVCFramework.DataSet.Utils.pas. This unit adds some method to each TDataSet descendant using a class helper, and in this project, we'll use some of them.
The first button converts the current dataset record (the dataset is called qryPeople and is owned by a data module called dm) into a JSON object; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access