模拟数据的格式

作者: 小熊翻译App | 来源:发表于2017-09-05 19:42 被阅读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}]}";

相关文章

网友评论

    本文标题:模拟数据的格式

    本文链接:https://www.haomeiwen.com/subject/ojdpjxtx.html