它应该很简单,但我无法让它工作。
Json 响应是 ([{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "y": "4"}])
NSString *response = [request responseString];
//response is ([{"id":"1", "x":"1", "y":"2"},{"id":2, "x":"2", "y":"4"}])
SBJSON *parser = [[[SBJSON alloc] init] autorelease];
NSDictionary *jsonObject = [parser objectWithString:response error:NULL];
// jsonObject doesn't have any value here..Am I doing something wrong?
NSMutableArray Conversion = [jsonObject valueForKey:NULL];
//Even if I get the value of jsonObject. I don't know what to put for valueForKey here
转换应该有两个 NSObjects ..他们每个人都应该有
id:1 x:1 y:2
和
id:2 x:2 y:4