json_decoder_remove_node()
QNX SDP8.0JSON Library ReferenceAPIDeveloper
Remove a node from the decoder tree
Synopsis:
#include <sys/json.h>
json_decoder_error_t json_decoder_remove_node(json_decoder_t *decoder,
const char *name)
Arguments:
- decoder
- The JSON decoder instance.
- name
- The name of the node to remove, or NULL to remove the current node.
Library:
libjsonDescription:
This function removes the given node from the decoder tree. After this call, the node will no longer be accessible from the decoder instance.
Note:
Information previously returned from the node (in particular, name or value strings) continues to be valid until a subsequent call to json_decoder_destroy(), json_decoder_parse_json_str(), or json_decoder_cleanup(), or until json_encoder_*() calls are made on an encoder returned from json_decoder_get_encoder() to modify the decoder tree.
Returns:
- JSON_DECODER_OK
- Success.
- JSON_DECODER_NOT_FOUND
- The specified node does not exist.
Page updated: