Questions tagged [jsonkit]

A Very High Performance Objective-C JSON Library, licensed under the terms of the BSD License

87 questions
1
vote
1 answer

JSONKit issue : Illegal Unicode escape sequence

When using AFNetwork (with JSONKit ), got a error: Domain=JKErrorDomain Code=-1 "Illegal \u Unicode escape sequence." UserInfo=0x834cab0 {JKAtIndexKey=218, JKLineNumberKey=1, NSLocalizedDescription=Illegal \u Unicode escape sequence.} Searching…
Forrest
  • 122,703
  • 20
  • 73
  • 107
0
votes
2 answers

Test if object is JKArray

I want to see if the results of this call: NSDictionary *results = [jsonString objectFromJSONString]; id contacts=[[results objectForKey:@"list"] objectForKey:@"Contact"]; Return an array or a dictionary. I tried this: [contactdict…
Paul Wand
  • 323
  • 5
  • 12
0
votes
2 answers

im getting a warning using objectFromJSONData

my objective C app compiles successfully, but i get an Xcode warning: Instance method '-objectFromJSONData' not found (return type defaults to 'id') on this line: NSDictionary *userInfo = [data objectFromJSONData]; How can i get rid of that…
Trevor Jordet
  • 641
  • 6
  • 7
0
votes
1 answer

Anyone else having trouble w/ JSONKit and the delegate?

I'm experiencing some problems with JSONKit. I've got an object A which imports another class which imports JSONKit.h. In A I try to parse an NSArray containing some custom objects which for I implemented a custom formatter class to set as the…
flohei
  • 5,248
  • 10
  • 36
  • 61
0
votes
1 answer

MKNetwork saving JSON content to NSDictionary

I am using MKNetwork, to handle the Networking functionality of my application. I am trying to read a JSON file, and save its content to a NSDictionary. NSDictionary *valueDic = [[completedOperation responseJSON] objectForKey:@"value"]; The above…
Illep
  • 16,375
  • 46
  • 171
  • 302
0
votes
2 answers

JSONKit Parsing Nested JSON with Objective-C

I am trying to parse my nested JSON with JSONKit and the 2nd level JSON isn't being parsed correctly. Here's sample JSON... { "app": { "content":…
Umair A.
  • 6,690
  • 20
  • 83
  • 130
0
votes
1 answer

What is wrong with my use of jsonkit decode in objective-C?

I have a file: { "MapName" : "This is map1"; } Which I try to read in with: - (id)initFromFile:(NSString *)mapName { self = [super init]; if (self) { NSString* path = [[NSBundle mainBundle] pathForResource:mapName…
BrendanS
  • 191
  • 13
0
votes
2 answers

JSONkit sorting issues

I am using a REST based web service to get data. No matter what the structure of the JSON document, the NSDictionary gets populated the same way. I want the sorting preserved as the web service returns. Here is my code: -(void) getData { NSURL…
Strong Like Bull
  • 11,155
  • 36
  • 98
  • 169
0
votes
2 answers

Downloading and parsing JSON kit on iOS

I am trying to parse this from a webserver to a tableview in iOS { "transactions": [ { "ID": "350", "description": "Macbook Pro 17 inch", "price": "2811.83" }, { "ID": "351", "description": "Macbook - white", …
thebiglebowski11
  • 1,451
  • 10
  • 41
  • 76
0
votes
1 answer

Objective-C &JSONKit POST issue

I'm trying to post to a rails backend from Objective-C and JSONKit and am having difficulty getting my results published. I keep getting back a null recordset from my server. [dictionary setValue:(@"bar") forKey:@"foo"]; NSString *JSON =…
mat
  • 11
  • 1
0
votes
1 answer

Handle WordPress JSON response with JSONKit

I use JSONKit to parse data from a wordpress blog. NSData *wp_json = [NSURLConnection sendSynchronousRequest: request returningResponse:&response error:&err]; NSDictionary *posts = [wp_json objectFromJSONData] the data received is JSON so when I do…
Michaël
  • 11
  • 2
0
votes
1 answer

Error sending JSONArray parameter in url (iOS)

i need to convert an array into json and send it as a parameter in a url along with other parameters. I am using jsonKit for json conversion and AFNetworking for network communication.But it always gives exception in the json at the server. Here is…
Kitty
  • 75
  • 2
  • 9
0
votes
1 answer

sthttprequest and jsonkit with arm64, not work anymore?

I'm creating and update of one of my app, it uses sthttprequest and jsonkit. From this february apple require the supporting for 64 bit architectures, i have already seen this warning in the past months : iOS app submission : missing 64-bit…
user31929
  • 1,115
  • 20
  • 43
0
votes
2 answers

How to solve json Error in ios 7?

Am using following code. +(void)getQuarterList:(NSString *)user_id { if ([self checkInternet]) { NSString *url=[NSString stringWithFormat:@"%@/api/v1/quarters.json",MainURL]; AFHTTPRequestOperationManager *manager =…
0
votes
1 answer

Use JSONKit and AFNetworking to make url query a complex JSON object

I am using AFNetworking to perform login and the url format is like this: http://xxx/mobile?function=login&req={username:xxx,password:xxx} So firstly I created the parameters using a NSDictionary within a NSDictionary, like below: @{@"function" :…
Mr. Crow
  • 21
  • 2
  • 6