Could not cast value of type '__NSArrayM' to 'NSDictionary'

后端 未结 2 1165
一整个雨季
一整个雨季 2021-01-28 22:57

I have a json.I am trying to parse that with that code.But its says

Could not cast value of type \'__NSArrayM\' to \'NSDictionary\'

<
2条回答
  •  礼貌的吻别
    2021-01-28 23:32

    The root object in your data is an array, not a object (dictionary).

    You need to dynamically decide how to handle your JSON depending on the deserialized object.

提交回复
热议问题