Unit 'fpjson' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TJSONObject

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class of TJSONObject.

Declaration

Source position: fpjson.pp line 620

type TJSONObject = class(TJSONData)

public

  constructor Create();

  

Create a new instance of JSON object data.

  destructor Destroy; override;

  

Free the JSON object.

  class function JSONType; override;

  

native JSON data type.

  property UnquotedMemberNames: Boolean; [rw]

  

Should member names be written unquoted or quoted in JSON.

  function Clone; override;

  

Clone the JSON object.

  function GetEnumerator; override;

  

Get an object enumerator.

  procedure Iterate();

  

Iterate over all elements in the object.

  function IndexOf();

  

Return index of JSONData instance in object.

  function IndexOfName();

  

Return index of name in item list.

  function Find();

  

Find an element by name.

  function Get();

  

Retrieve a value by name.

  procedure Clear; override;

  

Clear the object.

  function Add();

  

Add a name, value to the object.

  procedure Delete();

  

Delete an element from the list by index.

  procedure Remove();

  

Remove item by instance.

  function Extract();

  

Extract an element from the object.

  property Names []: TJSONStringType; [r]

  

Indexed access to the names of elements.

  property Elements []: TJSONData; default; [rw]

  

Name-based access to JSON values in the object.

  property Types []: TJSONtype; [r]

  

Types of values in the object.

  property Nulls []: Boolean; [rw]

  

Named access to null values.

  property Floats []: TJSONFloat; [rw]

  

Named access to float values.

  property Integers []: Integer; [rw]

  

Named access to integer values.

  property Int64s []: Int64; [rw]

  

Named access to int64 values.

  property QWords []: QWord; [rw]

  

Named access to QWord values.

  property LargeInts []: TJSONLargeInt; [rw]

  

Get or set elements as LargeInt values.

  property UnicodeStrings []: TJSONUnicodeStringType; [rw]

  

Named access to Unicode string values.

  property Strings []: TJSONStringType; [rw]

  

Named access to string values.

  property Booleans []: Boolean; [rw]

  

Named access to boolean values.

  property Arrays []: TJSONArray; [rw]

  

Named access to JSON array values.

  property Objects []: TJSONObject; [rw]

  

Named access to JSON object values.

end;

Inheritance

TJSONObject

  

Class of TJSONObject.

|

TJSONData

  

Base (abstract) object for all JSON based data types.

|

TObject

Description

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

See also

TJSONObject

  

Class of TJSONObject.

SetJSONInstanceType

  

JSON factory: Set the JSONData class types to use.

GetJSONInstanceType

  

JSON factory: Get the JSONData class types to use.


Documentation generated on: Oct 02 2024