0

how do I deserialize this JSON string to NSSArray using jsonkit.

[{"answer": "AAA", "questionId": "1"}, {"answer": "BBB", "questionId": "2"}, ...]
The iOSDev
  • 5,237
  • 7
  • 41
  • 78

1 Answers1

1

Something like this should do it:

 NSDictionary *jsonDictionary = [jsonString objectFromJSONString];
 NSArray *jsonValues = [jsonDictionary allValues];
combinatorial
  • 9,132
  • 4
  • 40
  • 58