System.JSON.BSON.TBsonWriter

From RAD Studio API Documentation
Jump to: navigation, search

System.JSON.Writers.TJsonWriterSystem.JSON.Types.TJsonFilerSystem.JSON.Types.TJsonLineInfoSystem.TObjectTBsonWriter

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:

  1. Create a BSON writer to write data into a data stream or using a binary writer.
  2. 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.

See Also