Sign in Join
FPDoc Onlineexperiment

TJSONObject class

In unit fpJson

Class of TJSONObject.

Declaration

pascal
TJSONObject = class(TJSONData)

Inheritance

  1. TJSONObject
  2. TJSONData
  3. TObject

Description

TJSONObjectClass is the class type of TJSONObject. It is used in the factory methods.

See also

Properties

UnquotedMemberNamespublicShould member names be written unquoted or quoted in JSON.
NamespublicIndexed access to the names of elements.
ElementspublicName-based access to JSON values in the object.
TypespublicTypes of values in the object.
NullspublicNamed access to null values.
FloatspublicNamed access to float values.
IntegerspublicNamed access to integer values.
Int64spublicNamed access to int64 values.
QWordspublicNamed access to QWord values.
LargeIntspublicGet or set elements as LargeInt values.
UnicodeStringspublicNamed access to Unicode string values.
StringspublicNamed access to string values.
BooleanspublicNamed access to boolean values.
ArrayspublicNamed access to JSON array values.
ObjectspublicNamed access to JSON object values.

Methods

DoFindPathprotected
Converterrorprotected
GetAsBooleanprotected
GetAsFloatprotected
GetAsIntegerprotected
GetAsInt64protected
GetAsQWordprotected
SetAsInt64protected
SetAsQwordprotected
SetAsBooleanprotected
SetAsFloatprotected
SetAsIntegerprotected
GetAsJSONprotected
GetAsStringprotected
SetAsStringprotected
GetValueprotected
SetValueprotected
GetCountprotected
GetItemprotected
SetItemprotected
DoFormatJSONprotected
CreatepublicCreate a new instance of JSON object data.
DestroypublicFree the JSON object.
JSONTypepublicnative JSON data type.
ClonepublicClone the JSON object.
GetEnumeratorpublicGet an object enumerator.
IteratepublicIterate over all elements in the object.
IndexOfpublicReturn index of JSONData instance in object.
IndexOfNamepublicReturn index of name in item list.
FindpublicFind an element by name.
GetpublicRetrieve a value by name.
ClearpublicClear the object.
AddpublicAdd a name, value to the object.
DeletepublicDelete an element from the list by index.
RemovepublicRemove item by instance.
ExtractpublicExtract an element from the object.

Inherited

From TJSONData (23)

AsBoolean AsFloat AsInt64 AsInteger AsJSON AsLargeInt AsQWord AsString AsUnicodeString CompressedJSON Count DoError DumpJSON FindPath FormatJSON GetAsUnicodeString GetIsNull GetPath IsNull Items SetAsUnicodeString TFormatJSONContext Value

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance 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.