Returns the number of elements in array.

Syntax

size_t json_array_size(
    const json_t* array
);

Parameters

array
[in] JSON array

Return value

Returns the number of elements in array.

Remarks

Returns the number of elements in array, or 0 if array is NULL or not a JSON array.

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