可能重複:
Parse JSON in Objective-C with SBJSON使用SBJson,如何從對象數組中檢索字符串列表?
我有以下JSON響應(字符串)。我想把它解析成帶有所有患者姓名的NSArray
。
[{"pat_reg_no":"111181031P1","app_start_time":"10.15","pat_firstname":"Will Smith"},
{"pat_reg_no":"111181031P2","app_start_time":"11.15","pat_firstname":"Shane Watson"},
{"pat_reg_no":"111181031P3","app_start_time":"12.15","pat_firstname":"Michael Hussey"},
{"pat_reg_no":"111181031P1","app_start_time":"10.15","pat_firstname":"Will Smith"}]
我該如何解析?
請訪問[這個問題](http://stackoverflow.com/questions/6509214/parse-json-in-objective-c-with-sbjson)。在這裏他們談論同樣的問題,並有解決方案。 – carbonr 2012-03-05 06:24:58