Error mapping single JSON object in Restkit

后端 未结 1 1692
失恋的感觉
失恋的感觉 2021-01-26 11:15

I\'m having trouble mapping a JSON-response into an Objective-C object.

This is the content of the response:

{
\"pin\": {
\"title\": \"Donkey Kong Tower         


        
相关标签:
1条回答
  • 2021-01-26 11:43

    Because description is a predefined method used to return a description of the instance - don't override it by adding your own property with the same name.

    Change the name of your property to 'overview' or something like that and update the mapping destination key.

    0 讨论(0)
提交回复
热议问题