Goto: 4C Home | 4C Docs | 4C External Libraries Home | FCJSon Home | FCJSon Function List ArrayPutNullObject()

ArrayPutNullObject()

Purpose:
FCJSon::ArrayPutNullObject() creates a new JSon object of <key>:<value> pairs, adds a null value to this object using <key> and puts this object at a specific index in an existing json array.
Usage:
rc = FCJSon::ArrayPutNullObject(<arrayident>,<arrayidx>,<key>);
Arguments:

integer <arrayident> - An ident to a json array object

integer <arrayidx> - The index into the array to put the new object

alpha <key> - The key to use for the null value in the new json object
Returns:
integer <rc>
0 - OK
-1 - Error
Where Used:
FCJSon::ArrayPutNullObject() can be called anytime you have an ident to a json array object.
Example:
Example
Description:
FCJSon::ArrayPutNullObject() creates a new JSon object of <key>:<value> pairs, adds a null value to this object using <key> 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