You are not logged in.
Pages: 1
Is there a way to customise the default JSON serialisation of character types? Specifically, I'd like them to be serialised to JSON strings rather than numbers and wondered if there are any options for this?
I know I can register a custom serialiser using TRttiJson.RegisterCustomSerializer, but then I need to do this for each distinct character type, so a way to customise the default would be preferable.
Offline
My guess is that JSON serialization of character types into numbers was not correct.
Even mORMot 1 generated JSON strings.
Please try https://github.com/synopse/mORMot2/commit/c18ba13a
Offline
Thanks, character types are now being serialised as strings, although it doesn't currently escape control characters.
Offline
You are right.
Please try https://github.com/synopse/mORMot2/commit/80e0f522
Offline
That's fixed it, thanks!
Offline
Pages: 1