System.JSON.BSON.TBsonWriter
Delphi
TBsonWriter = class(TJsonWriter)
C++
class PASCALIMPLEMENTATION TBsonWriter : public System::Json::Writers::TJsonWriter
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.JSON.BSON.pas System.JSON.BSON.hpp |
System.JSON.BSON | System.JSON.BSON |
Description
Class to serialize data in BSON format.
TBsonWriter provides error checking for the invalid BSON.
To write BSON data:
- Create a BSON writer to write data into a data stream or using a binary writer.
- Call the appropriate writing method sequentially for the BSON token to be generated, for example, call WriteStartObject to write the beginning of a BSON object.
You may use the Writer property to access the binary writer that the BSON writer uses to write into the output stream.