Getting ready

We'll use a DataSet helper provided by the unit MVCFramework.DataSet.Utils.pas of the previously mentioned DelphiMVCFramework (more information can be found here: https://github.com/danieleteti/delphimvcframework).

First, get DelphiMVCFramework using the Git repository (a simple guide is available here: https://danieleteti.gitbooks.io/delphimvcframework/content/chapter_getting_started.html). Then, create a new VCL project to do some experiments. This recipe is not a complete project but a set of demos showing what you can do with your datasets using the following helper.

The demo project is a simple list of buttons, a TDBGrid, and a TMemo to show the last JSON serialization that happened:

Figure 6.7: Demo for DataSet JSON serialization