Sign in Join
FPDoc Onlineexperiment

TJSONDataWriter class

In unit JsonWriter

JSON writer that builds TJSONData tree in memory

Declaration

pascal
TJSONDataWriter = class(TAbstractJSONWriter)

Inheritance

  1. TJSONDataWriter
  2. TAbstractJSONWriter
  3. 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

CurrentStructprotected
PushDataprotected
PopDataprotected
destroypublicDestroy the writer and free any created JSON data
EndArraypublicEnd writing a JSON array
EndObjectpublicEnd writing a JSON object
EndPropertypublicEnd writing a property in a JSON object
NextElementpublicPrepare for the next element in a JSON array
StartArraypublicStart writing a JSON array
StartObjectpublicStart writing a JSON object
StartPropertypublicStart writing a property in a JSON object
WriteValuepublicWrite a JSON value to the current position
FlushpublicValidate the internal state for data extraction
ExtractDatapublicExtract the created JSON data tree

Inherited

From TAbstractJSONWriter (1)

WriteProperty

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.