Free a previously saved JSON decoder state
#include <sys/json.h>
void json_decoder_free_state(json_decoder_t *decoder, json_decoder_state_t *state);
This function frees the memory associated with the given decoder state, which was returned by json_decoder_get_state(). It is not usually necessary to explicitly free states because they are freed automatically by calls to json_decoder_cleanup(), json_decoder_parse_json_str(), and json_decoder_destroy(). Calling json_decoder_free_state() is important only if there are many calls to json_decoder_get_state() without the decoder being cleaned up or a new JSON string being parsed.