iphoneiossbjson

How to cancel the parsing of SBJsonStreamParser?


I use SBJsonStreamParser(class of SBJson) to parse JSON.now I want to know how to cancel parsing of the class when the class is parsing at runtime.I couldn't find such API.someone please help me !!


Solution

  • I'm afraid there is no such API at the moment. If you need it, I suggest raising an issue in the issue tracker. You are also free to implement it yourself, and send a pull request. I will accept the patch if it's any good.

    Disclaimer: I am SBJson's author.

    Update: just to let you know, SBJson 4 (released December 2013) supports cancelling.