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
1
vote
2 answers

iPhone unable to parse JSON results from YELP

I'm attempting to parse validated JSON from a yelp search result. This correctly spits out the json as expected (confirmed in simulator browser and my own). - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data { …
Travis
  • 3,156
  • 3
  • 21
  • 27
1
vote
3 answers

Monotouch binding for TouchJSON?

The admob sdk for iPhone uses a proprietary libAdMobNoThumb.a library and an Objective-C source based TouchJSON library. Does anybody know of a C# binding for TouchJSON so that we can include it? Or does anybody know how to build a library that can…
guivho
  • 365
  • 1
  • 2
  • 18
1
vote
1 answer

iOS: TouchJSON & retrieved data size

I want to display a UIProgressView indicating the amount of data received as I request JSON data using touchJSON. I was wondering if there was a way to listen to the size of the data being received. I request data using the following: -…
Oh Danny Boy
  • 4,857
  • 8
  • 56
  • 88
1
vote
1 answer

iPhone: fastest way to fire API calls and parse JSON?

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…
dpigera
  • 3,339
  • 5
  • 39
  • 60
1
vote
2 answers

How do I get the value's of name & url from a nsdictionary object?

I am 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…
Robbie A.
  • 15
  • 3
1
vote
0 answers

Touch Json CJsonScanner

I am using Touch JSON lib, in Base SDK iOS 8 not able to get the CDataScanner extension class. @interface CJSONScanner : CDataScanner So that's why i am getting below crash, Any idea about this. -[CJSONScanner userInfoForScanLocation]: unrecognized…
1
vote
1 answer

CJSONDeserialize error

I am working on a JSON parsing application. I am using touchjson for parsing the json url which is -- https://dl.dropboxusercontent.com/u/746330/facts.json { "title":"About Canada", "rows":[ { "title":"Beavers", "description":"Beavers…
Somya
  • 65
  • 1
  • 7
1
vote
2 answers

Iphone TouchJson jsonData to Dict

Hi i'm making app that take json from web page but its not converting the jsonData to Dict using touchJson (Framework, Library, Class) The Json {SFP:[{"Group":"Oil"},{"Group":"Sugar"}]} TheCode NSStringEncoding *Encoding; NSError *Error; NSURL…
1
vote
1 answer

get touchJson data for int type

I am using touchJson to deserialize my json from server. My json is like below: {"text":"abc", "user_id":12345} After deserializing, I use below code to get the Json values: NSString *text = [dict objectForKey:@"text"]; This is simple because the…
Bin Chen
  • 61,507
  • 53
  • 142
  • 183
0
votes
1 answer

TouchJSON Fails on Compile (link error)

Undefined symbols for architecture x86_64: "_objc_unretainedPointer", referenced from: -[CJSONScanner scanJSONStringConstant:error:] in CJSONScanner.o -[CJSONSerializer serializeNumber:error:] in CJSONSerializer.o ld: symbol(s) not found for…
Jonathan Howard
  • 216
  • 1
  • 10
0
votes
1 answer

TouchJSON serializing a structure of dictionaries and arrays

iPhone development question (ObjectiveC). I'm trying to use TouchJSON library, and having some trouble serialising to JSON. I have ARC switched on so I'm using the ARC branch from github. I'm trying what I imagine to be a fairly a basic nested…
Harry Wood
  • 2,220
  • 2
  • 24
  • 46
0
votes
3 answers

Parse JSON array

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.…
Stefan
  • 28,843
  • 15
  • 64
  • 76
0
votes
1 answer

Cannot access a dictionary created with TouchJSON

I am trying to use TouchJSON and here is what I have done to test it : NSString *jsonString = @"{\"firtname\": \"Matthieu\",\"lastname\": \"Ravey\",\"age\": 22}"; NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; NSError *error…
mravey
  • 4,380
  • 2
  • 21
  • 31
0
votes
1 answer

Json Object to Sqlite Database in ios

I want to push the fetched data of json file to database. Can anyone suggests some solution?
0
votes
2 answers

How do I get properties out of NSDictionary?

I have a webservice that returns data to my client application in JSON. I am using TouchJson to then deserialize this data into a NSDictionary. Great. The dictionary contains a key, "results" and results contains an NSArray of objects. These…
Nick
  • 19,198
  • 51
  • 185
  • 312