API:System.JSON.BSON.TBsonWriter.WriteEndObject
Delphi
procedure WriteEndObject; override;
C++
virtual void __fastcall WriteEndObject();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | System.JSON.BSON.pas System.JSON.BSON.hpp |
System.JSON.BSON | TBsonWriter |
説明
JSON オブジェクトの終了を書き込みます。
System.JSON.BSON.TBsonWriter.WriteEndObject は System.JSON.Writers.TJsonWriter.WriteEndObject を継承しています。以下の内容はすべて System.JSON.Writers.TJsonWriter.WriteEndObject を参照しています。
JSON オブジェクトの終了を書き込みます。
WriteEndObject の使い方は、以下のコードを参照してください。
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"
}
]
}