RestKit: how to get a simple array of JSON strings?

How do I use RestKit to retrieve a JSON array of such strings:

["Paris", "London", "Brussels", "New York"] 

I tried to match objects, but since there is no path or key attribute, I don’t know what to display.

I don’t even need matching, the result can only be an array or a dictionary. Is there any way to achieve this?

EDIT:

For more information and solutions: https://github.com/RestKit/RestKit/issues/1290

+4
source share
1 answer

You need to create a mapping with the nil key. This gives the RestKit command to directly map row values ​​to targets. See this link.

+4
source

Source: https://habr.com/ru/post/1500819/


All Articles