json_decoder_name()
QNX SDP8.0JSON Library ReferenceAPIDeveloper
Get the name of the current property
Synopsis:
#include <sys/json.h>
const char* json_decoder_name(json_decoder_t *decoder)
Arguments:
- decoder
- The JSON decoder instance.
Library:
libjsonDescription:
This function gets the name of the current property. This is applicable only if the decoder is currently positioned within an object element.
Note:
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.
Returns:
The current property's name, or NULL if the decoder is not positioned within an object.
Page updated: