yajl_get_error after yajl_complete_parse
eatnumber1 opened this issue · 0 comments
eatnumber1 commented
If yajl_complete_parse fails, you don't necessarily have the last buffer passed to yajl_parse around with which to call yajl_get_error.
I don't see a documented way to get an error message from yajl_get_error without a buffer, but from a cursory reading of the code, it seems like the following will work:
yajl_get_error(handle, false, NULL, 0);
Is this properly supported? Can it be added to the documentation?