[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Abstract base class for JSON writers
Source position: jsonwriter.pp line 37
type TAbstractJSONWriter = class(TObject) |
||
public |
||
procedure WriteValue(); |
|
Write a JSON value to the output |
procedure WriteProperty(); |
|
Write a named property to a JSON object |
procedure StartProperty(); virtual; abstract; |
|
Start writing a property in a JSON object |
procedure EndProperty; virtual; abstract; |
|
End writing a property in a JSON object |
procedure StartArray; virtual; abstract; |
|
Start writing a JSON array |
procedure EndArray; virtual; abstract; |
|
End writing a JSON array |
procedure NextElement; virtual; abstract; |
|
Prepare for the next element in a JSON array |
procedure StartObject; virtual; abstract; |
|
Start writing a JSON object |
procedure EndObject; virtual; abstract; |
|
End writing a JSON object |
procedure Flush; virtual; abstract; |
|
Flush any pending output to the destination |
end; |
|
Abstract base class for JSON writers |
|
| | | ||
TAbstractJSONWriter is the abstract base class for all JSON writer implementations. It provides the interface for writing JSON data and implements convenience methods for writing properties. Derived classes must implement the abstract methods for actual writing operations.
|
JSON writer that builds TJSONData tree in memory |
|
|
JSON writer that writes directly to a stream |