You can clone with
HTTPS or Subversion.
Whenever I try to parse a stream of data using ASIHTTPRequest I get the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFDictionary initWithObjects:forKeys:count:]: attempt to insert nil value at objects0'
The method that fails is 'yajl_lex_lex'. It looks like the code is showing an invalid char no matter what get's fed in.
The code I used is simple:
YAJLDocument *jsonDoc = [[[YAJLDocument alloc] init] retain]; // defined globally
No matter what JSON data I try, same error. If I parse on completion, the data parses fine.
In case you're still having this problem: are your responses gzip compressed? If so, you need to set the following:
By default, responses are not inflated on the fly. See this portion of the ASIHTTPRequest documentation: http://allseeing-i.com/ASIHTTPRequest/How-to-use#on-the-fly_inflating