//联系人:石虎QQ:1224614774昵称:嗡嘛呢叭咪哄
一、概念JSON格式:
//这是JSON
{
contractTicker = {
delay =0,
moneytype =0,
volume =20,
open =0,
low =525.0599999999999,
close =0,
last =509.3,
offsetBuy =0,
endId =0,
high =525.0599999999999,
marketFrom =12,
avg =0,
name ="",
auto=0,
dayHigh =0,
buy =0,
change =0,
id=79,
offsetSell =0,
createdDate =1504097786000,
symbol =0,
dayLow =0,
type =0,
changeRate =0,
sell =0,
startId =0,
coinVolume =0,
},
contractid =20170331012,
result =1,
pageBean = {
currentRecordLength =0,
endItemIndex =0,
startItemIndex2 =0,
currentPage =1,
maxTotalPages =200,
pageLength =20,
startItemIndex =1,
totalPages =0,
totalResults =0,
},
status =0,
}
二、第三方解析(字典转模型)
//返回信息
NSDictionary *dataDic = dic[@"data"];
self.pageModel = [OKTBorrowPageBeanModel mj_objectWithKeyValues:dataDic[@"pageBean"]];
self.blastArray = [OKTBlastingModel mj_objectArrayWithKeyValuesArray:dataDic[@"FutureContractOrdersList"]];