Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
CodeDelphi

Robust DataSet To JSON And JSON To DataSet API For Delphi

robust-dataset-to-json-reverse-api-for-delphi

Most of the time, developers tend to use DataSet to manipulate the data in their applications. DataSet is helpful because it stores data in the dataset’s fields array property. You can easily access these values by number or by name. Moreover, each field can be used to read or modify the current record’s data by using its Value property or type-specific properties such as AsString, AsInteger, and so on. FireDAC itself has a built in SaveToFile and LoadFromFile (plus SaveToStream and LoadFromStream) for dataSets which supports XML, JSON, and binary.

And now, I would like to introduce you to the DataSetConverter4Delphi API. This is an API to convert JSON objects for DataSet and also doing the reverse process, like converting DataSet into JSON. And it works with the TDataSet, and TJSONObject, TJSONArray classes.

Furthermore, it is easy to add to your project, you just need to specify the path of the modules and you are good to go. 

Convert DataSet to JSON

Be sure to check out the DataSetConverter4Delphi library!


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

About author

Software Developer | B.Tech-CSE at AUT | Delphi/C++ Builder Enthusiast | Microsoft Learn Student Ambassador | Microsoft Azure Certified | Udacity Alumni
Related posts
DelphiShowcase

Powerful Real-Time Retail Dashboard App is Powered by Delphi

DelphiRAD StudioTech Partner

How To Make An Epic Dashboard Visualization For Windows, Mobile And The Web The Easy Way

DelphiInterview

Developer Stories: Themba Sivate Talks About The ST Auto Player Lite Software

DelphiInterview

Developer Stories: Jarrod Davis Speaks Of His GameVision Toolkit Application

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES