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

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

Comments

Projects
None yet
1 participant

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 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