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

10.2 Tokyo TJsonSerializer and JSON.Converters

Author: h.mohri


 

First declare with Pascal to use the converter and generics.

This is because the use of generics in C++Builder. C++Builder used Win64.

Include each file.

This time I tried TJsonListConverter and TJsonStringDictionaryConverter.

TJsonListConverter converts TList´╝ťT´╝× to JSON. TJsonStringDictionaryConverter converts TDictionary´╝ťString, T´╝× to JSON.

placed two buttons on the TForm.

It outputs a json string of after-converted to TMemo.

Button1 is TList´╝ťString´╝× to JSON Convert. Button2 is TDictionary´╝ťString, String´╝×to JSON.


 

It will be like this when executed.

 

 

 

 


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

Related posts
C++Code

2021 Annual C++ Developer Survey "Lite" by ISOCpp.org - Results summary

C++DelphiRAD Studio

Easy Serialization From Query To JSON

CodeDelphi

Robust DataSet To JSON And JSON To DataSet API For Delphi

DelphiShowcase

PAT: An Incredible Process Analysis Tool Made In Delphi

Leave a Reply

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

IN THE ARTICLES