JSON 是常見的網路資料格式。iOS 可透過原生 API 或第三方庫解析。

NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableLeaves error:&error];
SBJson 可使用 SBJsonParser;JSONKit 可使用 objectFromJSONString;TouchJson 則透過 CJSONDeserializer。
若從效能角度選擇,iOS 5 以後可優先使用 NSJSONSerialization;若需相容舊版本,可考慮 JSONKit。
實際開發時,也建議先檢查 JSON 格式是否正確,並對網路請求與解析錯誤做完整處理。