lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

Unclear how a client would cancel the parser #210

Open tciuro opened 6 years ago

tciuro commented 6 years ago

Hello,

I haven't being able to find information about how to cancel the parser. I've seen vague comments like "returning 0 from a callback", but nothing more.

Can someone provide a small snippet showing how a client would cancel the parser? Thanks!

AMDmi3 commented 5 years ago

Returning 0 from the callback is quite specific and complete. That's all you need to do to cancel the parser.