我邮箱 328912378@qq.com
Demo百度云 :http://pan.baidu.com/s/1hsPQZR2
接口返回一下数据,请帮我解析一下。输出:phone_number 。swiftyJSON已经导入工程中。
{
code = 1;
msg = (
"{\"u_id\": 198, \"timestamp\": 1467897699.2721512, \"signrecord_id\": 376, \"msg_id\": 667, \"msg_content\": {\"gender\": 1, \"qq_token\": null, \"industry\": \"\\u4e92\\u8054\\u7f51\", \"invite_num\": 0, \"nick_name\": \"\\u8f6f\\u4ef6\\u5f00\\u53d1\", \"member_type\": 0, \"wx_token\": null, \"open_id\": null, \"phone_number\": \"13168761200\", \"u_id\": 149, \"job\": \"iOS\\u5de5\\u7a0b\\u5e08\", \"main_business\": null, \"company\": \"\\u5584\\u4e3a\\u4e92\\u8054\", \"customer_id\": \"n201606200149\", \"region\": \"\\u6df1\\u5733\\u5e02\", \"head_img\": \"http://120.76.156.9:22354//static/upload/head_img/null_TFcLoRf.null\", \"wechat_img_url\": null, \"qq_open_id\": null, \"linked\": true, \"invete_code\": \"n201606200149\", \"realname\": null, \"qq_img_url\": null}, \"type\": \"msg_2\", \"msg_title\": \"\\u6709\\u4eba\\u7b7e\\u5230\\u5566!\"}"
);
}
json["msg", "phone_number"]
Isn’t this method good? If it doesn't work, the format of the returned data is incorrect and needs to be processed.