title: Elm: decode local JSON file into dict
body: <p>I'm working on my first Elm app.</p>
  
  <p>I want to use a local JSON file as a lookup table.  The file matches weather conditions (a string) to suggested clothing (a list).  </p>
  
  <p>EDIT (clarifying the question): Based on some earlier SO questions from 2015 I've tried using Http.get to get the contents and then Decode.dict to create the Dict. It seems strange to use an Http module to ingest a local file. Is this methodology, including the <code>Http.send</code> I use below correct in Elm?</p>
  
  <p>I am also having a hard time finding an example of a decoder that would work for a JSON file like the one I have.  Any pointers would be appreciated.</p>
  
  <p><strong>JSON</strong></p>
  
  <pre class="lang-json prettyprint-override"><code>{
       "male,10,overcast,light wind...": ["Winter Cap", "Light Jacket"...], 
       "female,30,partly cloudy...": ["Winter Cap", "Sunglasses", ...]
  }
  </code></pre>
  
  <p><strong>CODE</strong></p>
  
  <pre class="lang-elm prettyprint-override"><code>type alias ClothingDict =
       Dict String List
  
  clothingUrl: String
  clothingUrl =
    "./clothing.json"
  
  getClothingDict : Cmd Msg
  getClothingDict =
    let
      url = clothingUrl
    in
      Http.send SetClothing (Http.get url decodeClothingResponse)
  
  type alias ClothingResponse =
      { clothingOptions: ClothingDict }
  
  decodeClothingResponse : Decoder ClothingResponse
  decodeClothingResponse =
      Decode.dict ClothingResponse
  </code></pre>