System.JSON.Readers.TJsonReader.SetToken

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetToken(ANewToken: TJsonToken); overload;
procedure SetToken(ANewToken: TJsonToken; const AValue: TValue); overload;
procedure SetToken(ANewToken: TJsonToken; const AValue: TValue; AUpdateIndex: Boolean); overload;

C++

void __fastcall SetToken(System::Json::Types::TJsonToken ANewToken)/* overload */;
void __fastcall SetToken(System::Json::Types::TJsonToken ANewToken, const System::Rtti::TValue &AValue)/* overload */;
void __fastcall SetToken(System::Json::Types::TJsonToken ANewToken, const System::Rtti::TValue &AValue, bool AUpdateIndex)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.JSON.Readers.pas
System.JSON.Readers.hpp
System.JSON.Readers TJsonReader

Description

Sets the current JSON token.

SetToken sets the current JSON token according to ANewToken.

SetToken can take the following arguments:

  • ANewToken: Specifies the new token type.
  • AValue: Specifies the new object value associated to the new token type.
  • AUpdateIndex: Indicates if the index of the position of the current JSON token should be updated.

See Also