Updated: October 28, 2024 |
Remove a node from the decoder tree
#include <sys/json.h>
json_decoder_error_t json_decoder_remove_node(json_decoder_t *decoder, const char *name);
This function removes the given node from the decoder tree. After this call, the node will no longer be accessible from the decoder instance.
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.