You are not logged in.
Pages: 1
Hello,
XSuperObject have useful feature: Alias
I can declare
TRec = record
[ALIAS('I')] Id: UInt32;
[ALIAS('U')] UId: UInt64;
[ALIAS('P')] Parent: UInt32;
[ALIAS('C')] Child: UInt32;
end;
And after this JSON serialization will use this aliases in text representation instead full names of the fields
Have mORMot such functionality, or I should write my own callbacks CustomReader and CustomWriter?
Offline
You can specify the field name you want to TTextWriter.RegisterCustomJSONSerializerFromText().
Online
Pages: 1