What's New in Foundation: Custom JSON Decoding | Ray Wenderlich

When parsing JSON, things may not go as planned. In this screencast, you'll to develop your own parsing solutions to handle unexpected data.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4057-what-s-new-in-foundation-custom-json-decoding

Could decodable deserialize such json {profileName} and {taskName} magically?

{
"comments" : [
    {
    "profile_id" : 11,
    "task_id" : 6,
    "message" : "{profileName} said {taskName}",
    }
],
"profiles" : [
    {
    "id": 11,
    "name": "Jim"
    }
],
"tasks" : [
    {
    "id": 6,
    "name": "paint needed"
    }
]
}

@bdmoakley Can you please help with this when you get a chance? Thank you - much appreciated! :]