Returns the number of elements in object.

Syntax

size_t json_object_size(
    const json_t* object
);

Parameters

object
[in] JSON object

Return value

Returns the number of elements in object.

Remarks

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

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