I did a few tests with TouchJSON last night and it worked pretty well in general for simple cases. I'm using the following code to read some JSON content from a file, and deserialize it:
NSString *jsonString = [[NSString alloc] initWithContentsOfFile:@"data.json"];
NSData *jsonData = [jsonString dataUsingEncoding:NSUTF32BigEndianStringE...
Hi,
I fetch a JSON array from a web service with touchJSON.
Which looks like this:
[{"icecream": {"title": "Banana"}}, {"icecream": {"title": "Strawberry"}}]
I'm not able to parse this into a NSDictionary, because
touchJSON doesn't support JSON arrays.
How do I get my JSON array into a NSDicitionary?
Regards
...
How can i make a SOAP call using TouchJson?
it just work fine with REST call.
...
In my project I use TouchJSON to deserialize a JSON string. The result is a pretty NSDictionary. I would like to get the data in this dictionary into my domain objects / data objects.
Is there a good way to do this? Some best practices?
Perhaps the best to keep the NSDictionary and skip the domain objects?
...
hi, I've got a db on a server and want to get some data fro my iphone. I use TouchJson and everything works fine but I've got a little problem. I don't know how to download images. When I try to build and run the app the emulator just crashes. Got any ideas what to do?
...
I can't seem to work out how to get a Dictionary representing an object from the dictionary that TouchJSON returns.
For example:
If I use the JSON in the format here:
http://search.twitter.com/search.json?q=hello
How would I get a tweet with the "id" = x without having to pull all of the tweets into an array using a "for" statement?
...
Hi, I am trying to use TouchJSON to retrieve data from a php page with json output. I have followed the same steps as an example project I downloaded from and it still isn't working. When I select the section containing the data from my main menu the app crashes. I am including my view controller implementation file. Thanks, enbr.
http:/...
So i'm using touch JSON which worked out pretty well for me. I was able to take an array, put it in a dictionary, serialize it via touchJSON and send it out via http.
now on the return end, i received the data, and put it into a dictionary (i'm using trends.json from twitter as an example JSON).
now if i try to get the value for tren...
I currently have a UITableViewController that parses a JSON response (using TouchJSON) fired asynchronously using an ASIHTTPRequest.
I'm very concerned with the performance of my application.. 6 out of 10 API calls on average would lead to request timeouts and the combined time to fire an API call and parse an API call for 20 objects (e...
Hello there,
I was wondering if anyone has the TouchJSON framework working in conjunction with basic apache HTTP authentication. Essentially the directory of the RESTful webservice that I am calling is secured with basic http authentication. My calls are obviously all returning null now. Has anyone managed to get this working? I could e...