TJSONDataWriter class
JSON writer that builds TJSONData tree in memory
Declaration
TJSONDataWriter = class(TAbstractJSONWriter)Inheritance
- TJSONDataWriter
- TAbstractJSONWriter
- TObject
Description
TJSONDataWriter is a JSON writer implementation that builds a
TJSONData tree in memory.
This writer maintains an internal stack of JSON objects and arrays and constructs the complete JSON data structure as it writes.
The resulting
TJSONData can be extracted using
ExtractData.See also
Methods
CurrentStruct | protected | |
PushData | protected | |
PopData | protected | |
destroy | public | Destroy the writer and free any created JSON data |
EndArray | public | End writing a JSON array |
EndObject | public | End writing a JSON object |
EndProperty | public | End writing a property in a JSON object |
NextElement | public | Prepare for the next element in a JSON array |
StartArray | public | Start writing a JSON array |
StartObject | public | Start writing a JSON object |
StartProperty | public | Start writing a property in a JSON object |
WriteValue | public | Write a JSON value to the current position |
Flush | public | Validate the internal state for data extraction |
ExtractData | public | Extract the created JSON data tree |
Inherited
From TAbstractJSONWriter (1)
From TObject (41)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr 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.
