TJSONStreamWriter class
JSON writer that writes directly to a stream
Declaration
TJSONStreamWriter = class(TAbstractJSONWriter)Inheritance
- TJSONStreamWriter
- TAbstractJSONWriter
- TObject
Description
TJSONStreamWriter is a JSON writer implementation that writes JSON text directly to a stream without building an in-memory data structure.
This writer is memory-efficient for large JSON files as it streams the output directly.
It maintains element counters to properly format arrays and objects with correct comma placement.See also
Properties
Stream | protected | |
StrictStrings | public | Control strict JSON string encoding |
Methods
PushElCount | protected | |
PopElCount | protected | |
IncElCount | protected | |
ElCount | protected | |
WriteString | protected | |
create | public | Create a new stream writer for the given stream |
WriteValue | public | Write a JSON value directly to the stream |
StartProperty | public | Start writing a property in a JSON object |
EndProperty | public | End writing a property in a JSON object |
StartArray | public | Start writing a JSON array |
EndArray | public | End writing a JSON array |
NextElement | public | Prepare for the next element in a JSON array |
StartObject | public | Start writing a JSON object |
EndObject | public | End writing a JSON object |
Flush | public | Flush any pending output to the stream |
Inherited
From TAbstractJSONWriter (1)
From TObject (41)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
