Use Delphi serialization via JSON with C++
问题 Knowing that C++ does not have reflection I had a look at Delphi techniques and found an example using the REST.JSON library for serialization: Convert Object to JSON ... Now I would like to use a Delphi class, which can be serializied and deserialized with the provided methods, in my C++ code: TFoo = class(TObject) private public Fa: Integer; Fb: Double; end; In the C++ unit the class is serialized and deserialized like this: #include <REST.Json.hpp> #include "TestJson.hpp" //Contains TFoo