Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 8
    [Root].self to Root.self? Your JSON is not an Array at top level. Also, don't use localizedDescription, print the full error, and it should be more explicit then. Commented Jul 17, 2018 at 16:31
  • ... and (although not related to the issue) remove the redundant CodingKeys in InnerItem and all question marks as the JSON dictionaries clearly contain always all keys. image can even be decoded as URL Commented Jul 17, 2018 at 16:35
  • 5
    Don't print the localizedDescription because it has no context. Print the error to see exactly where the serialization failed. Commented Nov 27, 2019 at 10:30