json_decoder_get_state()
QNX SDP8.0JSON Library ReferenceAPIDeveloper
Get the current state of the JSON decoder
Synopsis:
#include <sys/json.h>
json_decoder_state_t* json_decoder_get_state(json_decoder_t *decoder)
Arguments:
- decoder
- The JSON decoder instance.
Library:
libjsonDescription:
This function returns the current state of the given decoder. Getting the state allows the decoder to be restored later to that state, with json_decoder_set_state(). The state that is returned is no longer valid following calls to json_decoder_cleanup(), json_decoder_parse_json_str(), or json_decoder_free_state().
Returns:
A pointer to the current JSON decoder state, or NULL if there was insufficient memory to get the state.
Page updated: