Serializing Objects with TJson

Serializing objects to Json as well as de-serializing them with the Delphi standard libraries has been subject to many discussions. While the majority suggests to use another library or a self implemented solution, there are others who would prefer the built-in tools for a couple of reasons. Simplicity and the availability with every (decent) Delphi installation being the most mentioned ones.

The ease and elegance of a TRESTRequest.AddBody<T>(myInstance) call is hard to attain with other means. I guess it is not myself alone being tempted to make use of it. With a bit of care taken when designing the objects to serialize the results are often quite satisfying and fit the requirements. Nourishing this with some advanced techniques shown in this post may be enough to keep the benefits without the need for external code. Continue reading “Serializing Objects with TJson”

When IDE Insight suddenly stops working…

… reset the IDE Insight toolbar!

Today, out of a sudden, IDE Insight stopped working in one of my Delphi 10.2.3 Tokyo instances. Other instances (those with different registry keys) were not affected.

After ruling out any third-party tools and Known Packages not common to the other instances, the reason would most likely be found somewhere in the registry.

After a while I had some sort of Dé·jà-vu: Exactly that happened to me quite a while ago and resetting the IDE Insight toolbar fixed it at that time. Unfortunately, I probably had not found the time to take a note of that. This time I do!

To reset the IDE Insight toolbar, select View -> Toolbars -> Customize to open the customize dialog. Under the Toolbars tab select the IDE Insight toolbar, click the Reset button and confirm.