@@ -1541,20 +1541,28 @@ TJsonSaveContext = record
1541
1541
{ $else}
1542
1542
TJsonSaveContext = object
1543
1543
{ $endif USERECORDWITHMETHODS}
1544
- private
1544
+ public
1545
+ // / the associated stream writer for the JSON output
1545
1546
W: TJsonWriter;
1547
+ // / serialization options as specified for this process
1546
1548
Options: TTextWriterWriteObjectOptions;
1549
+ // / the RTTI information of the current serialized type
1547
1550
Info: TRttiCustom;
1551
+ // / the RTTI information of the current serialized property
1552
+ // - is likely to be nil outside of properties serialization
1548
1553
Prop: PRttiCustomProp;
1549
- procedure Add64 (Value : PInt64; UnSigned: boolean);
1550
- procedure AddShort (PS: PShortString);
1551
- procedure AddShortBoolean (PS: PShortString; Value : boolean);
1552
- procedure AddDateTime (Value : PDateTime; WithMS: boolean);
1553
- public
1554
1554
// / initialize this low-level context
1555
1555
procedure Init (WR: TJsonWriter;
1556
1556
WriteOptions: TTextWriterWriteObjectOptions; Rtti: TRttiCustom);
1557
1557
{ $ifdef HASINLINE} inline;{ $endif}
1558
+ // / some basic functions to append some Int64 JSON value
1559
+ procedure Add64 (Value : PInt64; UnSigned: boolean);
1560
+ // / some basic functions to append some shorstring JSON value
1561
+ procedure AddShort (PS: PShortString);
1562
+ // / some basic functions to append some "name":boolean JSON value
1563
+ procedure AddShortBoolean (PS: PShortString; Value : boolean);
1564
+ // / some basic functions to append some TDateTime JSON value
1565
+ procedure AddDateTime (Value : PDateTime; WithMS: boolean);
1558
1566
end ;
1559
1567
1560
1568
// / internal function handler for JSON persistence of any TRttiParserType value
0 commit comments