iOS高效开发者

模拟数据的格式

2017-09-05  本文已影响4人  小浣熊的梦想

服务器发送的数据书写格式:

简单的字符串:
argValue = @"{\"order\":\"dujie\", \"fun\":\"notice\", \"playerid\":\"10000017\", \"onDujieFight\":\"2\"}";
字符串加上引号,数字可以不加引号
NSString *argValue = @"{\"order\":\"union\",\"fun\":\"info\",\"unions\":[{\"unionId\":1,\"unionName\":\"xianmeng_xxx\",\"icon\":\"union_icon_6\",\"level\":10,\"lat\":40.052926,\"lng\":116.300898,\"chiefName\":\"盟主\",\"curNumber\":20,\"maxNumber\":25,\"rank\":2,\"description\":\"公告\",\"isApply\":0}]}";

上一篇下一篇

猜你喜欢

热点阅读