Iterate over all the elements of the array and return a value.

Syntax

void json_array_foreach(
    json_t* array,
    size_t index,
    json_t* value
);

Parameters

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

Return value

None.

Remarks

Iterate over every element of array, running the block of code that follows each time with the proper values set to variables index and value, of types size_t and json_t pointer respectively.

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