Best way to parse a JSON response
I am calling a API, which should return me a JSON file. Here is the api link.
http://sg.media-imdb.com/suggests/h/hello.json

The problem is: this json file has something wrapping the json response

    imdb$hello(JSON)

So the best approch that I can see, to parse this that, is having a regex expression that I can extract only what I need, something like this: `~/\((.*)\)/`. However I would like to use the new JSON iOS5 api, which (as far as i know) just accept a NSData as input. So, I dont wanna convert my response from NSData to a NSString, and parse that using regex, and put that in another NSData object.

Can anyone see a better/cleaner solution for that Json parsing?



Best way to parse a JSON response
===

I am calling a API, which should return me a JSON file. Here is the api link.
http://sg.media-imdb.com/suggests/h/hello.json

The problem is: this json file has something wrapping the json response

    imdb$hello(JSON)

So the best approch that I can see, to parse this that, is having a regex expression that I can extract only what I need, something like this: `~/\((.*)\)/`. However I would like to use the new JSON iOS5 api, which (as far as i know) just accept a NSData as input. So, I dont wanna convert my response from NSData to a NSString, and parse that using regex, and put that in another NSData object.

Can anyone see a better/cleaner solution for that Json parsing?


