Get the location and reason for a parse error
#include <sys/json.h>
json_decoder_parse_error_t json_decoder_get_parse_error( json_decoder_t *decoder, int *location, const char **error);
If json_decoder_parse_json_str() returns a value of JSON_DECODER_PARSE_ERROR, this function will return the cause of the error and the offset in the JSON string at which the error was detected. If no parsing error occurred, this function will return JSON_DECODER_PARSE_OK and not update location.
The parse error code (see json_decoder_parse_error_t).