json_decoder_type()

Get the type of the current or specified node

Synopsis:

#include <sys/json.h>
json_node_type_t json_decoder_type(json_decoder_t *decoder,
                                   const char *name);

Arguments:

decoder
The JSON decoder instance.
name
The name of the node to provide the type for, or NULL to provide the type of the current node.

Library:

libjson

Returns:

The type of the referenced node (see json_node_type_t) or JSON_TYPE_NONE if the specified node does not exist.