<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Json · Brian Hicks</title>
    <link>https://www.brianthicks.com/tags/json/</link>
    <description>Recent content in Json  · Brian Hicks</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>brian@brianthicks.com (Brian Hicks)</managingEditor>
    <webMaster>brian@brianthicks.com (Brian Hicks)</webMaster>
    <copyright>The content on this site is licensed as &lt;a rel=&#34;license&#34; href=&#34;https://creativecommons.org/licenses/by-sa/4.0/&#34;&gt;CC Attribution-ShareAlike&lt;/a&gt; except for code samples, which are licensed as &lt;a rel=&#34;license&#34; href=&#34;http://creativecommons.org/publicdomain/zero/1.0/&#34;&gt;CC0&lt;/a&gt;.</copyright>
    <lastBuildDate>Fri, 13 Jan 2017 09:00:00 -0500</lastBuildDate>
    <atom:link href="/tags/json/" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Create Custom JSON Decoders in Elm 0.18</title>
      <link>https://www.brianthicks.com/post/2017/01/13/create-custom-json-decoders-in-elm-018/</link>
      <pubDate>Fri, 13 Jan 2017 09:00:00 -0500</pubDate>
      <author>brian@brianthicks.com (Brian Hicks)</author>
      <guid>https://www.brianthicks.com/post/2017/01/13/create-custom-json-decoders-in-elm-018/</guid>
      <description>
        &lt;p&gt;&lt;a href="https://www.brianthicks.com/post/2017/01/13/create-custom-json-decoders-in-elm-018/"&gt;&lt;img src="https://www.brianthicks.com/images/typewriter-by-sergey-zolkin-with-title.png" alt="Create Custom JSON Decoders in Elm 0.18" /&gt;&lt;/a&gt;&lt;/p&gt;
        &lt;p&gt;You&amp;rsquo;ve modeled your data exactly how it should be, and everything&amp;rsquo;s working fine.
Now it&amp;rsquo;s time to finish your JSON Decoder, but certain fields are strings where in your Elm code they&amp;rsquo;re complex data types!
This happens most often with dates, but tagged unions have this problem too.&lt;/p&gt;

&lt;p&gt;In 0.17 we had &lt;code&gt;customDecoder&lt;/code&gt;, which could turn any &lt;code&gt;Result String a&lt;/code&gt; into a &lt;code&gt;Decoder a&lt;/code&gt;, but it went away in 0.18.
So… what do we do?&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
        &lt;hr /&gt;
        &lt;p&gt;&lt;a href="https://www.brianthicks.com/post/2017/01/13/create-custom-json-decoders-in-elm-018/"&gt;Continue Reading&lt;/a&gt;&lt;/p&gt;
      </description>
    </item>
    
  </channel>
</rss>
