This Lesson is for PRO Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Autoplay
Hide playlist

    Decode Nested JSON Objects into Flat Elm Records

    Your Elm model may mirror the structure of your JSON exactly, but updating nested records in Elm is somewhat tedious, so you may sometimes choose to keep Elm types "flatter" then their JSON counterparts. Using the at decoder you can decode nested JSON values, and use them in the construction of a flat Elm record.

    You must be a Member to view code