草庐IT

valueOfKey

全部标签

iphone - 当我们从 ios 中的 json 获取它时如何检查 valueOfKey 是 Array 还是 Object

我有两种情况需要解析JSON首先是:{"post_filter_data":{"Items":[{"ItemID":"50cb4e46b5d30b0002000009","ItemName":"Fruitsaladtest","ItemPrice":"122.0","ItemDescription":"testtest","ItemImageUrl":"http://s3.amazonaws.com/menubis-mms-prototype-dev/menubis/assets/50cb4e64b5d30b0002000013/landing_page.jpg?1355501156"