Author: h.mohri
First declare with Pascal to use the converter and generics.
[crayon-6743c66d29347746203158/]
This is because the use of generics in C++Builder. C++Builder used Win64.
[crayon-6743c66d2934f183824311/]
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.
[crayon-6743c66d29351523947435/]
Button1 is TList<String> to JSON Convert. Button2 is TDictionary<String, String>to JSON.
It will be like this when executed.