API:System.JSON.BSON.TBsonWriter.WriteEndArray

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure WriteEndArray; override;

C++

virtual void __fastcall WriteEndArray();

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
System.JSON.BSON.pas
System.JSON.BSON.hpp
System.JSON.BSON TBsonWriter

説明

配列の終了を書き込みます。

System.JSON.BSON.TBsonWriter.WriteEndArray は System.JSON.Writers.TJsonWriter.WriteEndArray を継承しています。以下の内容はすべて System.JSON.Writers.TJsonWriter.WriteEndArray を参照しています。

配列の終了を書き込みます。

WriteEndArray の使い方は、以下のコードを参照してください。

  Writer.WriteStartObject;
  Writer.WritePropertyName('colors');
  Writer.WriteStartArray;
  Writer.WriteStartObject;
  Writer.WriteComment('Hexadecimal value for the red color');
  Writer.WritePropertyName('name');
  Writer.WriteValue('red');
  Writer.WritePropertyName('hex');
  Writer.WriteValue('#f00');
  Writer.WriteEndObject;
  Writer.WriteEndArray;
{
  "colors": [
    {
      /*Hexadecimal value for the red color*/
      "name": "red",
      "hex": "#f00"
    }
  ]
}

関連項目