json_decoder_length()

Get the number of elements in the current node

Synopsis:

#include <sys/json.h>
int json_decoder_length(json_decoder_t *decoder);

Arguments:

decoder
The JSON decoder instance.

Library:

libjson

Description:

This function returns the number of elements in the current array, or the number of properties in the current object.

Returns:

The element or property count.