Questions tagged [jsonkit]

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

87 questions
0
votes
1 answer

Why single backslash turns to double backslash

The string "\domain\path1\path2" was turned to "\\domain\\path1\\path2" after using AFNetwork to get the JSON response. I got two comments "they are same",but the point is that when we use NSURL to create a remote url for EGOImageView to load, that…
Forrest
  • 122,703
  • 20
  • 73
  • 107
0
votes
1 answer

Using JsonKit in Xcode 5.0

I using Xcode 5.0 and i want to use jsonKit to parser content, but i can't find where to place : -fno-arc-objc It will display : if __has_feature(objc_arc) error JSONKit does not support Objective-C Automatic Reference Counting (ARC)…
0
votes
1 answer

UITableView crashes when using JSON parsed data from AFnetworking

I am currently trying to parse data from a web service and format it inside of my UITableView. Details about the project: Deployment Target: ios 4.3 jsonTapped function: -(void) jsonTapped { AFHTTPClient *httpClient = [[AFHTTPClient alloc]…
Lugubrious
  • 380
  • 1
  • 3
  • 16
0
votes
1 answer

AFNetworking received non-English character: how to convert?

I am getting JSON response from some web server, say the server returns: "kən.grætju'leiʃən" I use AFNetworking and JSONKit, but what I've received is: "æm'biʃən" Not sure if it's AFNetworking's problem or JSONKit's problem, but any…
Heuristic
  • 5,087
  • 9
  • 54
  • 94
0
votes
1 answer

JSONKit returning unwanted NSCFString rather than NSDictionary

I've been pulling my hair out tried to figure out whats wrong here, for some reason JSONKit isn't giving me the dictionary I need so I can reference particular key/value pairs within the plist. Instead its displaying as a NSCFString which obviously…
Tadhg
  • 23
  • 3
0
votes
1 answer

Parse JSON in Objective C

I have this json returned from a cms and I need to break it apart and use the different values. {"nodes": [{"node": {"created":"14012013165204","lastupdated":"03042013133901","type":"News"} }] } I use JSONKit framework and here is…
NickOpris
  • 509
  • 2
  • 8
  • 20
0
votes
1 answer

JSONKit NSDictionary

Im having problems in JSONkit.h using NSDictionary. Whats the properly way to use it? Json: [{"id":"1100","name":"John Stuart"}] Code: - (void)connectionDidFinishLoading:(NSURLConnection *)connection { NSDictionary *jsonData = [responseData…
Luciano Nascimento
  • 2,600
  • 2
  • 44
  • 80
0
votes
2 answers

How to initiate webservice request that expects JSON payload

I am JSON newbie and can't find any material on how to simulate JSON payload request. My ultimate goal is to be able to build an objective-c iOS app that will handle these request-response. I am aware of ASIHttprequest framework and the…
Nirav Bhatt
  • 6,940
  • 5
  • 45
  • 89
0
votes
2 answers

how to parse this JSON using JSONKit in ios

Possible Duplicate: How do I parse JSON with Objective-C? I am downloading this Json data from server. Please help me to parsr this data properly. { "query": { "id": 57, "uuid": "F247AE9F35014F7D82354FDC17C3F54C", …
Jayant Dash
  • 91
  • 1
  • 6
0
votes
1 answer

JSONKit - objectFromJSONData always seems to return nil

I can't believe I can't get even this simple test stub working with JSONKit... I have a json file containing a valid JSON document, and this simple code: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the…
Dwayne King
  • 829
  • 1
  • 7
  • 15
0
votes
0 answers

How to use the FacebookSDK workaround?

After some duplicate JSON errors I've found the following Facebook SDK workaround. The owner deleted SBJSON and used JSKit instead. Does anybody know how to use this workaround? It is not the regular FacebookSDK framework, so I am not able to…
Foo
  • 596
  • 2
  • 5
  • 21
0
votes
2 answers

JSONKit: how to keep order of JSON dictionary keys

I've some JSON String that represents a Map (Dictionary) from the server. I need to draw this map as it is @ my iPhone app. I am using JSONKit and it seems that it uses Hashing function to insert keys into its internal JKDictionary.... So should I…
Khaled Annajar
  • 15,542
  • 5
  • 34
  • 45
0
votes
2 answers

objectFromJSONString in JSONKit.h returns null in iOS

Please do the following to reproduce the problem NSString *url = @"http://qdreams.com/laura/index.php?request=EventWeekListings&year=2012&month=10&day=22"; NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:url]]; NSString *json =…
user1208616
  • 61
  • 1
  • 1
  • 8
0
votes
1 answer

JSonString deserialze To NSArray with jsonkit

how do I deserialize this JSON string to NSSArray using jsonkit. [{"answer": "AAA", "questionId": "1"}, {"answer": "BBB", "questionId": "2"}, ...]
0
votes
4 answers

iOS JSONKit objectWithData returns null

I'm using JSONKit to parse JSON strings, for some reason when trying to assign the JSON string into NSDictionary it returns null JSONDecoder *jsonDecoder = [[JSONDecoder alloc] initWithParseOptions:JKParseOptionNone]; NSData *jsonData =…
jkigel
  • 1,592
  • 6
  • 28
  • 49