json_decoder_type()

QNX SDP8.0JSON Library ReferenceAPIDeveloper

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

Description:

Note:

The caller can pass "." in name to determine if the decoder is positioned within an object or an array.

Returns:

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

Page updated: