System.JSON.Writers.TJsonTextWriter.WriteNull
Delphi
procedure WriteNull; override;
C++
virtual void __fastcall WriteNull();
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 | 
|---|---|---|---|---|
| procedure function | public | System.JSON.Writers.pas System.JSON.Writers.hpp | System.JSON.Writers | TJsonTextWriter | 
説明
null 値を書き込みます。
WriteNull の使い方は、以下のコードを参照してください。
  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.WriteNull;
  //Writer.WriteValue('#f00');
  Writer.WriteEndObject;
  Writer.WriteEndArray;
{
  "colors": [
    {
      /*Hexadecimal value for the red color*/
      "name": "red",
      "hex": null
    }
  ]
}