Goto:
4C Home
|
4C Docs
|
4C External Libraries Home
|
FCJSon Home
|
FCJSon Function List
ArrayPutStringObject()
ArrayPutStringObject()
Purpose:
-
FCJSon::ArrayPutStringObject() creates a new JSon object of <key>:<value> pairs,
adds an alpha value to this object using <akey> and puts this object
at a specific index in an existing json array.
Usage:
-
-
rc = FCJSon::ArrayPutStringObject(<arrayident>,<arrayidx>,<akey>,<aval>);
Arguments:
-
integer <arrayident> - An ident to a json array object
-
integer <arrayidx> - The index into the array to put the new object
-
alpha <akey> - The key to use for <aval> in the new json object
-
alpha <aval> - The value to assign to the string
Returns:
-
integer <rc>
0 - OK
-1 - Error
Where Used:
-
FCJSon::ArrayPutStringObject() can be called anytime you have an ident to
a json array object.
Example:
-
Example
Description:
-
FCJSon::ArrayPutStringObject() creates a new JSon object of <key>:<value> pairs,
adds an alpha value to this object using <akey> and puts this object
at a specific index in an existing json array.
If an object already exists at <arrayidx> it is replaced by the new object.
If necessary the array will be extented with nulls so that it is at least
<arrayidx> + 1 in length.
Bugs/Features/Comments:
-
See Also:
-
FCJSon Function List
Back to Top