Logo Search packages:      
Sourcecode: yajl version File versions

unsigned char* YAJL_API yajl_get_error ( yajl_handle  hand,
int  verbose,
const unsigned char *  jsonText,
unsigned int  jsonTextLength 

get an error string describing the state of the parse.

If verbose is non-zero, the message will include the JSON text where the error occured, along with an arrow pointing to the specific char.

A dynamically allocated string will be returned which should be freed with yajl_free_error

Definition at line 139 of file yajl.c.

References yajl_get_error().

Referenced by yajl_get_error().

    return yajl_render_error_string(hand, jsonText, jsonTextLen, verbose);

Generated by  Doxygen 1.6.0   Back to index