Closed SigmundRakes closed 5 years ago
Solved: Wrong function call. Needed to call responseObject
rather than responseArray
as JSON output from API is an Object with nested Arrays and not an Array
New problem -> Null output of mapped JSON values using responseObject
. Will open a new issue.
New problem -> Null output of mapped JSON values using
responseObject
. Will open a new issue.
solved -> misplaced for x in y loop
Hi all,
Having trouble mapping an API into a Realm Object. Keep getting "ObjectMapper Failed to serialise response"
Here is my code for the API call func:
AND the code for the model:
Any help will be greatly appreciated! Thanks