Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Raymond Choy
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Raymond Choy
    iOS Development with Swift Techdegree Graduate 11,187 Points

    I need help Parsing JSON Using Codable to account for missing “imdb_url” using Swift

    Posted January 23, 2020 11:05pm by Raymond Choy
    .a{fill-rule:evenodd;}techdegree seal-36
    Raymond Choy
    iOS Development with Swift Techdegree Graduate 11,187 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    1 Answer

  • Raymond Choy
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Raymond Choy
    iOS Development with Swift Techdegree Graduate 11,187 Points

    I need help! I've tried 5 wrong solutions and Google search turns up no answers to this coding challenge

    Posted January 21, 2020 3:38am by Raymond Choy
    .a{fill-rule:evenodd;}techdegree seal-36
    Raymond Choy
    iOS Development with Swift Techdegree Graduate 11,187 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    2 Answers

  • amit karmacharya
    amit karmacharya
    22,009 Points

    I was looking at the definition of JSONDecoder. It is a class that has an initializer with empty body. init() HOw?

    Posted December 26, 2019 4:12am by amit karmacharya
    amit karmacharya
    22,009 Points
    • iOS
    • Parsing JSON Using Codable
    • An Overview of Codable
    • A Quick Peek

    0 Answers

  • chris kordash
    PLUS
    chris kordash
    Courses Plus Student 1,309 Points

    Please help! Problem decoding nested array of Json

    Posted September 16, 2019 1:33am by chris kordash
    chris kordash
    Courses Plus Student 1,309 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Nested Objects

    0 Answers

  • Monika Kesarwani
    Monika Kesarwani
    5,851 Points

    help in for fill in the blank

    Posted June 25, 2019 3:11am by Monika Kesarwani
    Monika Kesarwani
    5,851 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    1 Answer

  • Matthew Foster
    Matthew Foster
    7,442 Points

    recap-parsing-different-json-structures

    Posted June 21, 2019 6:13am by Matthew Foster
    Matthew Foster
    7,442 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    1 Answer

  • Harsha Vardhan Murthy
    Harsha Vardhan Murthy
    57 Points

    How to parse the following JSON

    Posted May 3, 2019 2:37pm by Harsha Vardhan Murthy
    Harsha Vardhan Murthy
    57 Points
    • iOS
    • Parsing JSON Using Codable
    • Dynamic Keys and Inheritance
    • Dynamic Coding Keys

    0 Answers

  • Deysha Rivera
    Deysha Rivera
    5,088 Points

    Error Parsing JSON using Codable when adding snake case

    Posted May 1, 2019 1:24pm by Deysha Rivera
    Deysha Rivera
    5,088 Points
    • iOS
    • Parsing JSON Using Codable
    • An Overview of Codable
    • The CodingKey Protocol

    1 Answer

  • Randell Pur
    Randell Pur
    4,934 Points

    Reference to member 'designer' cannot be resolved without a contextual type

    Posted January 31, 2019 5:39pm by Randell Pur
    Randell Pur
    4,934 Points
    • iOS
    • Parsing JSON Using Codable
    • Dynamic Keys and Inheritance
    • Dynamic Coding Keys

    1 Answer

  • Randell Pur
    Randell Pur
    4,934 Points

    Quick question about the date format "MMMM".

    Posted January 31, 2019 3:33pm by Randell Pur
    Randell Pur
    4,934 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing to Non-Primitive Types
    • Parsing Dates

    1 Answer

  • Nicholas Whitfield
    Nicholas Whitfield
    5,154 Points

    So if I wanted to get the id's, titles, etc. from the candidates array from the full JSON, how would I need to do that?

    Posted October 20, 2018 6:37am by Nicholas Whitfield
    Nicholas Whitfield
    5,154 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Lists of Objects

    1 Answer

  • Christian A. Castro
    Christian A. Castro
    30,501 Points

    Any idea why I'm receiving this error message in the console!!! Initialization of immutable value 'container', Help!

    Posted August 22, 2018 7:10am by Christian A. Castro
    Christian A. Castro
    30,501 Points
    • iOS
    • Parsing JSON Using Codable
    • An Overview of Codable
    • The Decodable Protocol

    2 Answers

  • Nicholas Whitfield
    Nicholas Whitfield
    5,154 Points

    I'm getting a "Date string does not match format expected by formatter." error when I type in the code in xCode

    Posted August 20, 2018 6:09am by Nicholas Whitfield
    Nicholas Whitfield
    5,154 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing to Non-Primitive Types
    • Parsing Dates

    1 Answer

  • jakubhirner
    jakubhirner
    14,784 Points

    Why does the size of JSON change?

    Posted August 6, 2018 3:06pm by jakubhirner
    jakubhirner
    14,784 Points
    • iOS
    • Parsing JSON Using Codable
    • An Overview of Codable
    • The Encodable Protocol

    1 Answer

  • Hardik Pansuria
    Hardik Pansuria
    1,449 Points

    var container = encoder.container(keyedBy: .CodingKey)

    Posted July 28, 2018 4:19pm by Hardik Pansuria
    Hardik Pansuria
    1,449 Points
    • iOS
    • Parsing JSON Using Codable
    • An Overview of Codable
    • Recap: An Overview of Codable

    1 Answer

  • Jonathan Mazala
    Jonathan Mazala
    9,860 Points

    Wondering how to solve unwrapping compiler error in swift 4

    Posted July 25, 2018 11:23pm by Jonathan Mazala
    Jonathan Mazala
    9,860 Points
    • iOS
    • Parsing JSON Using Codable
    • Dynamic Keys and Inheritance
    • Dynamic Coding Keys

    1 Answer

  • Fritz Jason Canete
    Fritz Jason Canete
    3,771 Points

    Hi can anybody help me with the answer for this quiz: var container = encoder.container(keyedBy:___) thank you

    Posted July 25, 2018 5:02am by Fritz Jason Canete
    Fritz Jason Canete
    3,771 Points
    • iOS
    • Parsing JSON Using Codable
    • An Overview of Codable
    • Recap: An Overview of Codable

    0 Answers

  • Nev Wood
    PLUS
    Nev Wood
    Courses Plus Student 5,793 Points

    let post = try! decoder.decode([String: Post].self, from: json) works in swift playground but fails in treehouse test.

    Posted July 22, 2018 4:15pm by Nev Wood
    Nev Wood
    Courses Plus Student 5,793 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    1 Answer

  • Bastian Petersson
    Bastian Petersson
    9,164 Points

    Given the following JSON and Codable conforming type, fill in the blanks

    Posted June 21, 2018 12:56pm by Bastian Petersson
    Bastian Petersson
    9,164 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    1 Answer

  • Garrett Votaw
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Garrett Votaw
    iOS Development Techdegree Graduate 15,223 Points

    Nil values not encoded on Xcode Version 9.3.1

    Posted May 17, 2018 7:57pm by Garrett Votaw
    .a{fill-rule:evenodd;}techdegree seal-36
    Garrett Votaw
    iOS Development Techdegree Graduate 15,223 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Missing Data

    5 Answers

  • Roberto Garcia
    PLUS
    Roberto Garcia
    Courses Plus Student 177 Points

    Why this answer wrong?

    Posted May 2, 2018 9:31pm by Roberto Garcia
    Roberto Garcia
    Courses Plus Student 177 Points
    • iOS
    • Parsing JSON Using Codable
    • Parsing Different JSON Structures
    • Recap: Parsing Different JSON Structures

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord