没有键路径的数组的 Restkit 映射 [英] Restkit mapping for array with no keypath

查看:41
本文介绍了没有键路径的数组的 Restkit 映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为这样的 JSON 响应创建对象映射,它只是一个整数数组:

<预><代码> [565195,565309,565261,565515,565292,565281,566346,566347,575241,597230,597231,597227,597228,597229,597232,575248]

解决方案

您需要执行 nil 键路径映射.在此处检查没有键路径的映射值"部分.

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
 ]

解决方案

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

这篇关于没有键路径的数组的 Restkit 映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆