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

parser:didAdd: does not fire for isolated number. #29

Open
bnickel opened this issue Oct 24, 2012 · 1 comment
Open

parser:didAdd: does not fire for isolated number. #29

bnickel opened this issue Oct 24, 2012 · 1 comment

Comments

@bnickel
Copy link

bnickel commented Oct 24, 2012

Sending the parser @"1.0" does not result in a value because the parser does not know if more data is pending. Conversely @"true", @"null", and @\"test\"" work because the parser infers a complete object.

I believe the correct approach would be to add a [parser close] method which invokes yajl_complete_parse that can be executed when the end of the stream is reached.

@bnickel
Copy link
Author

bnickel commented Oct 24, 2012

Close could also detach the delegate to reduce the risk of a memory leak.

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