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

Added yajl_is_terminal function. This function can be used to determine ... #122

Closed
wants to merge 1 commit into from

Conversation

jjchoy
Copy link

@jjchoy jjchoy commented Feb 7, 2014

...if yajl expects more input.

This allows us to exit early when parsing input in chunks in the following cases:

  • when an error is discovered
  • if yajl_allow_trailing_garbage is set and a complete document has been parsed

@jjchoy
Copy link
Author

jjchoy commented Feb 7, 2014

Ignore bullet point 1 - just realised that that case is handled by the result of yajl_parse. Point 2 is still a valid use case for this change.

@jjchoy jjchoy closed this by deleting the head repository Jan 1, 2023
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

Successfully merging this pull request may close these issues.

None yet

1 participant