Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yajl_get_error after yajl_complete_parse #221

Open
eatnumber1 opened this issue Nov 5, 2019 · 0 comments
Open

yajl_get_error after yajl_complete_parse #221

eatnumber1 opened this issue Nov 5, 2019 · 0 comments

Comments

@eatnumber1
Copy link

eatnumber1 commented Nov 5, 2019

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?

@eatnumber1 eatnumber1 changed the title yajl_gen_string after yajl_complete_parse yajl_get_error after yajl_complete_parse Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant