[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base (abstract) object for all JSON based data types
Source position: fpjson.pp line 108
type TJSONData = class(TObject) |
||
public |
||
class function JSONType; virtual; |
|
The native JSON data type represented by this object |
property CompressedJSON: Boolean; [rw] |
|
Compress JSON - skip whitespace |
constructor Create; virtual; |
|
Create a new instance of TJSONData. |
procedure Clear; virtual; abstract; |
|
Clear the raw value of this data object |
procedure DumpJSON(); |
|
Fast, memory efficient dump of JSON in stream |
function GetEnumerator; virtual; |
|
Return an enumerator for the data |
function FindPath(); |
|
Find data by name |
function GetPath(); |
|
Get data by name |
function Clone; virtual; abstract; |
|
Duplicate the value of the JSON data |
function FormatJSON(); |
|
Return a formatted JSON representation of the data. |
|
Number of sub-items for this data element |
|
|
Indexed access to sub-items |
|
property Value: TJSONVariant; [rw] |
|
The value of this data object as a variant. |
property AsString: TJSONStringType; [rw] |
|
Access the raw JSON value as a string |
property AsUnicodeString: TJSONUnicodeStringType; [rw] |
|
Return the value as a Unicode string |
|
Access the raw JSON value as an 64-bit integer |
|
|
Access the raw JSON value as an 64-bit unsigned integer |
|
property AsLargeInt: TJSONLargeInt; [rw] |
|
Access to data as largeint |
property AsFloat: TJSONFloat; [rw] |
|
Access the raw JSON value as a float |
|
Access the raw JSON value as an 32-bit integer |
|
property AsBoolean: Boolean; [rw] |
|
Access the raw JSON value as a boolean |
property IsNull: Boolean; [r] |
|
Is the data a null value ? |
property AsJSON: TJSONStringType; [r] |
|
Return a JSON representation of the value |
end; |
|
Base (abstract) object for all JSON based data types |
|
| | ||
TJSONData is an abstract class which introduces all properties and methods needed to work with JSON-based data. It should never be instantiated. Based on the type of data that must be represented one of the following descendents must be instantiated instead.
|
Class to represent 32-bit integer JSON data. |
|
|
Class to represent string JSON data. |
|
|
Class to represent boolean JSON data. |
|
|
Class to represent boolean JSON data. |
|
|
Class of TJSONArray |
|
|
Class of TJSONObject |