Restkit mapping for array with no keypath

隐身守侯 提交于 2019-12-17 17:04:04

问题


How can I create an object mapping for a JSON response like this, which is just an array of integers:

 [
 565195,
 565309,
 565261,
 565515,
 565292,
 565281,
 566346,
 566347,
 575241,
 597230,
 597231,
 597227,
 597228,
 597229,
 597232,
 575248
 ]

回答1:


You need to perform a nil keypath mapping. Check the 'Mapping Values without Key Paths' section here.



来源:https://stackoverflow.com/questions/18004327/restkit-mapping-for-array-with-no-keypath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!