Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

JSONSerializationWithSynopse

Demonstrates ObjectToJSON in SynCommons.pas.

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

text
Demo projects to demonstrate ObjectToJSON in SynCommons.pas.  

Originally I though there was a problem with this, which was due to me not including the mORMot.pas unit, resulting in the wrong serializer being used.

Somewhat relevant blog post: http://blog.synopse.info/post/2012/04/13/Custom-JSON-serialization-of-any-class

I posted about this here: https://synopse.info/forum/viewtopic.php?pid=30271#p30271
and here: https://en.delphipraxis.net/topic/1771-synopse-syncommonspas-objecttojson-behaviour/

Never mind!  ¯\_(ツ)_/¯