Get the name of the current property
#include <sys/json.h>
const char* json_decoder_name(json_decoder_t *decoder);
This function gets the name of the current property. This is applicable only if the decoder is currently positioned within an object element.
Name 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 modify the decoder tree.
The current property's name, or NULL if the decoder is not positioned within an object.