Questions tagged [touchjson]

Built on Objective-C, TouchJSON is a JSON parser and generator library.

Built on Objective-C, TouchJSON is a JSON parser and generator library. It provides various standard JSON manipulation functionality, like building a JSON, converting an object to JSON, converting and transforming JSON to objects and NSDictionary-ies.

44 questions
0
votes
1 answer

TouchJSON - Why I get lots of \U**** in the results of parsing?

I am using TouchJSON to parse a JSON data. In the results, the strings in the array are all in \U** format. Yes, they are meant to be other languages than English. Why TouchJSON can't just replace them with real string via UTF8? How should I deal…
Jackson Tale
  • 25,428
  • 34
  • 149
  • 271
0
votes
1 answer

iphone objective-c : string to NSData conversion for json deserialization

I receive json from a webservice into a NSMutableData. That gets converted into a NSDictionary using TouchJson. NSDictionary *dictionary = [[CJSONDeserializer deserializer] deserializeAsDictionary:responseData error:&error]; NSString *strData =…
CF_Maintainer
  • 973
  • 2
  • 12
  • 30
0
votes
1 answer

JSON Parse objective c

I´ve got the next json code: { "person_1":{ "name" :"person", "pictures":[ {"images":{ "picture_1": "url1", "picture_2": "url1", } …
DaSilva
  • 1,358
  • 1
  • 19
  • 42
0
votes
2 answers

How do you parse a JSON array with TouchJSON?

I'm using TouchJSON. Made a call to my Rails app to fetch all "posts" at localhost:3000/posts.json. This returns a JSON array, surrounded by square brackets. I'm currently set up to convert the jsonString into an NSDictionary, but that fails due to…
John
  • 5,835
  • 8
  • 28
  • 36
0
votes
2 answers

'NSDictionary' may not respond to '+dictionaryWithJSONString'... when using TouchJSON

I'm really new to Cocoa development, so please be kind. Anyway, I'm trying to deserialize a JSON string I'm sending from my server through TouchJSON, but I'm getting a compiler warning of 'NSDictionary' may not respond to…
Gup3rSuR4c
  • 9,145
  • 10
  • 68
  • 126
0
votes
1 answer

Using AdMob in MonoTouch Projects with iOS SDK 4.2

Using AdMob in MonoTouch Projects with iOS SDK 4.2 We have a test project to try using AdMob with MonoTouch. The setup is as follows: We created a (fat) TouchJSON library as described in post Monotouch binding for TouchJSON? We have a Libs library…
guivho
  • 365
  • 1
  • 2
  • 18
0
votes
1 answer

TouchXML parse response with unquoted keys

Is there a way to use TouchXML to parse json in which the key are not quoted, like this: { foo:"bar" } I'm trying to parse the response from a webservice (google), so simply fixing the JSON code to be valid is not an option. If it's not possible,…
sharvey
  • 7,635
  • 7
  • 48
  • 66
0
votes
1 answer

Dealing with <'null>' values in TouchJSON

I am deserializing some JSON using the TouchJSON framework. The array of dictionaries that comes from the parsing is used to populate a UITableView. There is a chance that some of the values in the JSON I parse are empty. This results, if I NSLog it…
RickiG
  • 11,380
  • 13
  • 81
  • 120
0
votes
1 answer

TouchJSON with basic HTTP authentication

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…
0
votes
1 answer

TouchJSON not working to retrieve data on iPhone

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…
enbr
  • 1,203
  • 10
  • 16
0
votes
2 answers

Deserialize an object from an NSDictionary from TouchJSON?

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…
mac_55
  • 4,130
  • 7
  • 31
  • 40
0
votes
1 answer

TouchJSON and SOAP

How can i make a SOAP call using TouchJson? it just work fine with REST call.
Nnp
  • 1,813
  • 7
  • 36
  • 62
0
votes
2 answers

Can't serialize NSDate with CJJsonSerializer

I try to add NSDate to NSMutableDictionary, and then make it a JSon string with this methods: NSMutableDictionary *d = [[NSMutableDictionary alloc]init]; [d setObject:[NSDate date] forKey:@"date"]; NSData *jsondata = [[CJSONSerializer serializer]…
YosiFZ
  • 7,792
  • 21
  • 114
  • 221
0
votes
1 answer

Touch JSON issues with Twitter on iOS

I'm trying to parse the Twitter User Status Updates JSON returned from Twitter: NSDictionary *publicTimeline = [NSDictionary dictionaryWithJSONData:responseData error:&jsonParsingError]; NSLog(@"%@ - %@",publicTimeline,[publicTimeline class]); This…
startuprob
  • 1,917
  • 5
  • 30
  • 45
1 2
3