[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Add a name, value to the object
Source position: fpjson.pp line 534
public function TJSONObject.Add( |
const AName: TJSONStringType; |
AValue: TJSONData |
):Integer; overload; |
const AName: TJSONStringType; |
AValue: Boolean |
):Integer; overload; |
const AName: TJSONStringType; |
AValue: TJSONFloat |
):Integer; overload; |
const AName: TJSONStringType; |
const AValue: TJSONStringType |
):Integer; overload; |
const AName: TJSONStringType; |
Avalue: Integer |
):Integer; overload; |
const AName: TJSONStringType; |
Avalue: Int64 |
):Integer; overload; |
const AName: TJSONStringType; |
Avalue: QWord |
):Integer; overload; |
const AName: TJSONStringType |
):Integer; overload; |
const AName: TJSONStringType; |
AValue: TJSONArray |
):Integer; overload; |
AName |
|
Name to add the value with. |
AValue |
|
Value to add to the object. |
The resulting TJSONData descendent
AName |
|
Name to add the value with. |
AValue |
|
Value to add to the object. |
AName |
|
Name to add the value with. |
AValue |
|
Value to add to the object. |
AName |
|
Name to add the value with. |
AValue |
|
Value to add to the object. |
AName |
|
Name to add the value with. |
Avalue |
|
Value to add to the object. |
AName |
|
Name to add the value with. |
Avalue |
|
Value to add to the object. |
AName |
|
Name to add the value with. |
Avalue |
|
Value to add to the object. |
AName |
|
Name to add the value with. |
AName |
|
Name to add the value with. |
AValue |
|
Value to add to the object. |
Add adds the value AValue with name AName to the object. If the value is not a TJSONData descendent, then it is converted to a TJSONData value, and it returns the TJSONData descendent that was created to add the value.
The properties Integers, Int64s, BooleansStrings, Floats, Arrays and Objects will not raise an exception if an existing name is used, they will overwrite any existing value.
If a value with the same name already exists, an exception is raised.
Integers |
Int64s |
Booleans |
Floats |
Arrays |