json_decoder_index()

Get the index of the current node

Synopsis:

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

Arguments:

decoder
The JSON decoder instance.

Library:

libjson

Returns:

The zero-based index of the current node within its parent.