JavaEar 专注于收集分享传播有价值的技术资料


  1. Yes you can.

    NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error];

    See here

  2. 参考答案2
  3. You need to use NSJSONSerialization. Take a look here

    Be aware that parsing a received JSON object in to an Obj-C object can result in an array or a dictionary depending on how the JSOn is formatted. You can test with the isKindOfClass: method.