Classe TJSONObject
Unit
Declaração
type TJSONObject = class(TZAbstractObject)
Descrição
Classe que representa um objeto JSON
Hierarquia
- TObject
- TZAbstractObject
- TJSONObject
Visão Geral
Métodos
![]() |
constructor create; overload; |
![]() |
constructor create(jo : TJSONObject; sa : array of string); overload; |
![]() |
constructor create(x : JSONTokener); overload; |
![]() |
constructor create(map : TStringList); overload; |
![]() |
constructor create(s : string); overload; |
![]() |
procedure clean; |
![]() |
function clone: TZAbstractObject; override; |
![]() |
function accumulate(key : string; value : TZAbstractObject) : TJSONObject; |
![]() |
function get(key : string) : TZAbstractObject; |
![]() |
function getBoolean(key : string) : Boolean; |
![]() |
function getDouble(key : string) : Double; |
![]() |
function getInt(key : string) : Integer; |
![]() |
function getInt64(key : string) : Int64; |
![]() |
function getJSONArray(key : string) : TJSONArray; |
![]() |
function getJSONObject(key : string) : TJSONObject; |
![]() |
function getString(key : string) : String; |
![]() |
function has(key : string) : Boolean; |
![]() |
function isNull(key : string) : Boolean; |
![]() |
function keys: TStringList; |
![]() |
function length: integer; |
![]() |
function names: TJSONArray; |
![]() |
class function numberToString(n: _Number): string; |
![]() |
class function valueToString(value : TZAbstractObject) : string; overload; |
![]() |
class function valueToString(value : TZAbstractObject; indentFactor , indent : integer) : string; overload; |
![]() |
function opt(key : string) : TZAbstractObject; |
![]() |
function optBoolean(key : string): boolean; overload; |
![]() |
function optBoolean(key : string; defaultValue : boolean): boolean; overload; |
![]() |
function optDouble(key : string): double; overload; |
![]() |
function optDouble(key : string; defaultValue : double): double; overload; |
![]() |
function optInt(key : string): integer; overload; |
![]() |
function optInt(key : string; defaultValue : integer): integer; overload; |
![]() |
function optInt64(key : string): Int64; overload; |
![]() |
function optInt64(key : string; defaultValue : Int64): Int64; overload; |
![]() |
function optString(key : string): string; overload; |
![]() |
function optString(key : string; defaultValue : string): string; overload; |
![]() |
function optJSONArray(key : string): TJSONArray; overload; |
![]() |
function optJSONObject(key : string): TJSONObject; overload; |
![]() |
function put(key : string; value : boolean): TJSONObject; overload; |
![]() |
function put(key : string; value : double): TJSONObject; overload; |
![]() |
function put(key : string; value : integer): TJSONObject; overload; |
![]() |
function put(key : string; value : Int64): TJSONObject; overload; |
![]() |
function put(key : string; value : string): TJSONObject; overload; |
![]() |
function put(key : string; value : TZAbstractObject): TJSONObject; overload; |
![]() |
function putOpt(key : string; value : TZAbstractObject): TJSONObject; |
![]() |
class function quote(s : string): string; |
![]() |
class function convertUTF8String(s: string): string; |
![]() |
function remove(key : string): TZAbstractObject; |
![]() |
procedure assignTo(json: TJSONObject); |
![]() |
function toJSONArray(anames : TJSONArray) : TJSONArray; |
![]() |
function toString(): string ; overload; override; |
![]() |
function toString(indentFactor : integer): string; overload; |
![]() |
function toString(indentFactor, indent : integer): string; overload; |
![]() |
destructor destroy; override; |
![]() |
class function NULL: NULL; |
Descrição
Métodos
![]() |
constructor create; overload; |
* Construct an empty TJSONObject. |
![]() |
constructor create(jo : TJSONObject; sa : array of string); overload; |
* Construct a TJSONObject from a subset of another TJSONObject. An array of strings is used to identify the keys that should be copied. Missing keys are ignored. . Parâmetros
|
![]() |
constructor create(x : JSONTokener); overload; |
* Construct a TJSONObject from a JSONTokener. Parâmetros
Exceções levantadas
|
![]() |
constructor create(map : TStringList); overload; |
* Construct a TJSONObject from a TStringList. Parâmetros
|
![]() |
constructor create(s : string); overload; |
* Construct a TJSONObject from a string. This is the most commonly used TJSONObject constructor. Parâmetros
Exceções levantadas
|
![]() |
procedure clean; |
* remove todos os menbros de um objeto JSON . |
![]() |
function clone: TZAbstractObject; override; |
* sobreescreve o metodo clone de TZAbstractObject |
![]() |
function accumulate(key : string; value : TZAbstractObject) : TJSONObject; |
![]() |
function get(key : string) : TZAbstractObject; |
![]() |
function getBoolean(key : string) : Boolean; |
![]() |
function getDouble(key : string) : Double; |
![]() |
function getInt(key : string) : Integer; |
![]() |
function getInt64(key : string) : Int64; |
![]() |
function getJSONArray(key : string) : TJSONArray; |
![]() |
function getJSONObject(key : string) : TJSONObject; |
![]() |
function getString(key : string) : String; |
![]() |
function has(key : string) : Boolean; |
![]() |
function isNull(key : string) : Boolean; |
![]() |
function keys: TStringList; |
* retorna um TStringList com todos os nomes dos atributos do TJSONObject |
![]() |
function length: integer; |
* Retorna quantos atributos tem o TJSONObject |
![]() |
function names: TJSONArray; |
* Produce a TJSONArray containing the names of the elements of this TJSONObject. . RetornoA TJSONArray containing the key strings, or null if the TJSONObject is empty |
![]() |
class function numberToString(n: _Number): string; |
* transforma uma class wrapper _Number (Number em java) em AnsiString |
![]() |
class function valueToString(value : TZAbstractObject) : string; overload; |
* Make JSON string of an object value. Warning: This method assumes that the data structure is acyclical. Parâmetros
Retorno a printable, displayable, transmittable
representation of the object, beginning
with |
![]() |
class function valueToString(value : TZAbstractObject; indentFactor , indent : integer) : string; overload; |
* Make a prettyprinted JSON text of an object value. Warning: This method assumes that the data structure is acyclical. Parâmetros
Retornoa printable, displayable, transmittable
representation of the object, beginning
with |
![]() |
function opt(key : string) : TZAbstractObject; |
* Get an optional value associated with a key. Parâmetros
RetornoAn object which is the value, or null if there is no value. Exceções levantadas
|
![]() |
function optBoolean(key : string): boolean; overload; |
![]() |
function optBoolean(key : string; defaultValue : boolean): boolean; overload; |
![]() |
function optDouble(key : string): double; overload; |
![]() |
function optDouble(key : string; defaultValue : double): double; overload; |
![]() |
function optInt(key : string): integer; overload; |
![]() |
function optInt(key : string; defaultValue : integer): integer; overload; |
![]() |
function optInt64(key : string): Int64; overload; |
![]() |
function optInt64(key : string; defaultValue : Int64): Int64; overload; |
![]() |
function optString(key : string): string; overload; |
![]() |
function optString(key : string; defaultValue : string): string; overload; |
![]() |
function optJSONArray(key : string): TJSONArray; overload; |
![]() |
function optJSONObject(key : string): TJSONObject; overload; |
![]() |
function put(key : string; value : boolean): TJSONObject; overload; |
![]() |
function put(key : string; value : double): TJSONObject; overload; |
![]() |
function put(key : string; value : integer): TJSONObject; overload; |
![]() |
function put(key : string; value : Int64): TJSONObject; overload; |
![]() |
function put(key : string; value : string): TJSONObject; overload; |
![]() |
function put(key : string; value : TZAbstractObject): TJSONObject; overload; |
* Put a key/value pair in the TJSONObject. If the value is null, then the key will be removed from the TJSONObject if it is present. Parâmetros
Retornothis. Exceções levantadas
|
![]() |
function putOpt(key : string; value : TZAbstractObject): TJSONObject; |
* Put a key/value pair in the TJSONObject, but only if the value is non-null. Parâmetros
Retornothis. Exceções levantadas
|
![]() |
class function quote(s : string): string; |
![]() |
class function convertUTF8String(s: string): string; |
![]() |
function remove(key : string): TZAbstractObject; |
![]() |
procedure assignTo(json: TJSONObject); |
![]() |
function toJSONArray(anames : TJSONArray) : TJSONArray; |
![]() |
function toString(): string ; overload; override; |
![]() |
function toString(indentFactor : integer): string; overload; |
![]() |
function toString(indentFactor, indent : integer): string; overload; |
![]() |
destructor destroy; override; |
![]() |
class function NULL: NULL; |
Gerado por PasDoc 0.16.0.