#1 2023-11-24 07:25:03

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 238
Website

Changes in TJsonSaveContext

Hi Arnaud,

it's been a while that I had a chance to update my local mORMot2 rep, as another project attacked my (not so) well laid out time table.

Anyway, one change, that grabbed my be surprise, is the use of records with methods, rather than the previous object approach. In mormot.core.json defines the TJsonSaveContext. In our project, I have created my own version of the (previously) object, and could, through a helper object, easily access the fields

    W: TJsonWriter;
    Options: TTextWriterWriteObjectOptions;
    Info: TRttiCustom;
    Prop: PRttiCustomProp;

to implement very specific sub cases. I do propose making those fields public, please :-)

Regards,
Daniel

Offline

#2 2023-11-24 20:34:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,549
Website

Re: Changes in TJsonSaveContext

Offline

#3 2023-11-25 10:27:20

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 238
Website

Re: Changes in TJsonSaveContext

Thanks :-)

Offline

Board footer

Powered by FluxBB