Sign in Join
FPDoc Onlineexperiment

TJSONString class

In unit fpJson

Class to represent string JSON data.

Declaration

pascal
TJSONString = class(TJSONData)

Inheritance

  1. TJSONString
  2. TJSONData
  3. TObject

Description

TJSONString must be used whenever string data must be represented. Currently the implementation uses an ANSI string to hold the data. This means that to correctly hold Unicode data, a UTF-8 encoding must be used.

See also

Methods

GetValueprotected
SetValueprotected
GetAsBooleanprotected
GetAsFloatprotected
GetAsIntegerprotected
GetAsInt64protected
GetAsQWordprotected
SetAsInt64protected
SetAsQwordprotected
SetAsBooleanprotected
SetAsFloatprotected
SetAsIntegerprotected
GetAsJSONprotected
GetAsStringprotected
SetAsStringprotected
CreatepublicCreate a new instance of string JSON data.
JSONTypepublicnative JSON data type.
ClearpublicClear value.
ClonepublicClone string value.

Fields

StrictEscapingpublicUse strict escaping.

Inherited

From TJSONData (29)

AsBoolean AsFloat AsInt64 AsInteger AsJSON AsLargeInt AsQWord AsString AsUnicodeString CompressedJSON Count DoError DoFindPath DoFormatJSON DumpJSON FindPath FormatJSON GetAsUnicodeString GetCount GetEnumerator GetIsNull GetItem GetPath IsNull Items SetAsUnicodeString SetItem TFormatJSONContext Value

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.