嘗試解析從服務器接收的json數據的iOS中的新手。 以下是我的json響應。從服務器讀取Json響應並在objective-c中解析xcode
{
"msg": "success",
"data": {
"id": "1",
"salutation": "Mr.",
"first_name": "DIPAK NARANBHAI",
"last_name": "PATEL",
"email": "2[email protected]",
"phone": "XXXXXXXXXXXXXXXXXXXXXXXXXXXX3094",
"vin_no": "SALVA2AN1HL921364",
"lob": "Land Rover",
"ppl": "Range Rover Evoque",
"sub_model": "",
"pl": "2.0 L TD4 132 kW Diesel 5 Door SE 5 Seater",
"date_of_sale": "10-JUL-17",
"account_name": "",
"actual_delivery_date": "10-JUL-17",
"selling_dealer": "CARGO MOTORS PVT LTD",
"dlrid": "11201",
"time": "1499773196",
"stk_sync": "N",
"vehicle_reg_no": "MH-01-AB1234"
}
}
這裏使用NSJSONSerialization的任何想法?
的可能的複製[IOS目標C解析JSON(https://stackoverflow.com/questions/8407577/ios-objective-c-parsing-json) –