Jump to content
ByteJuggler

Synopse SynCommons.pas ObjectToJSON() behaviour

Recommended Posts

Hi,

 

Has anyone recently used the ObjectToJSON function from SynCommons.pas from Synopse's mORMot framework?  If so can you have a look at the following post:

https://synopse.info/forum/viewtopic.php?pid=30271#p30271

 

It must be me missing something obvious, but it seems slightly broken to me. 🙂

 

Edit: Never mind! I worked out what I'm missing.  You basically have to also add the mORMot unit to your uses clause, to ensure that TJSONSerializer is set as the default writer instead of TTextWriter.

Edited by ByteJuggler

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×