Appends value to the end of array.

Syntax

int json_array_append_new(
    json_t* array,
    json_t* value
);

Parameters

array
[out] JSON array
value
[in] JSON value

Return value

Returns 0 on success and -1 on error.

Remarks

Appends value to the end of array. Returns 0 on success and -1 on error. And, steals the reference to value. So you don't need to explicitly call json_decref () on the value after use.

See the API Reference below for more information.

Requirements

Header file:
lib.h : System E6.0 or later.
jansson.h
jansson_config.h
jansson_log.h
Library file:
libJansson.a
libSTARTUPOPH5000.a : System E6.0 or later.

See also

Last updated: 2022/01/26