I am trying to parse a json string requested from an api located at: http://www.physics.leidenuniv.nl/json/news.php
However, i am having trouble parsing this json. I get
One solution is to use NSURLConnection sendSynchronousRequest:returningResponse:error:
(docs). In the completion handler you'll have ALL the response data, not just the partial data you get in the delegate's connection:didReceiveData:
method.
If you want to keep using the delegate, you'll need to follow the advice in the Apple docs:
The delegate should concatenate the contents of each data object delivered to build up the complete data for a URL load.