Get the string value from the current or the specified node
#include <sys/json.h>
json_decoder_error_t json_decoder_get_string(json_decoder_t *decoder, const char *name, const char **value, bool optional);
This function gets the string value from the current node or from the node with the given name, if the decoder is currently positioned in an object. If successful, the decoder will advance its position to the next node in the object or array.
Value strings returned by this function continue 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 update the decoder tree.