Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×