System.JSON.Writers.TJsonTextWriter.OnBeforeWriteToken

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure OnBeforeWriteToken(TokenBeginWritten: TJsonToken); override;

C++

virtual void __fastcall OnBeforeWriteToken(System::Json::Types::TJsonToken TokenBeginWritten);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.JSON.Writers.pas
System.JSON.Writers.hpp
System.JSON.Writers TJsonTextWriter

Description

Writes the required indent and space characters.

The OnBeforeWriteToken event handler is called before writing a token.

OnBeforeWriteToken defines the logic to add a delitimer between tokens when requiered, and the logic to indent when formatting is required.

Parameters:

See Also