title: Swift Decodable JSON dictionary with heterogeneous array
body: <p>I have some JSON that comes back in the following format,</p>
  
  <pre><code>{
  "Random Word": [
      [
          "2017-08-10",
          6
      ],
      [
          "2017-08-11",
          6
      ],
      [
          "2017-08-15",
          4
      ]
  ],
  "Another Random Word": [
      [
          "2017-08-10",
          4
      ],
      [
          "2017-08-11",
          4
      ],
      [
          "2017-08-12",
          1
      ],
      [
          "2017-08-14",
          2
      ],
      [
          "2017-08-15",
          4
      ],
      [
          "2017-08-16",
          1
      ]
  ]
  }
  </code></pre>
  
  <p>The issue is that the 'key' will be different each time and the 'value' contains a heterogeneous array of Strings (that should be converted to Dates), and Ints.</p>
  
  <p>Is there a way to use Swift's Decodable protocol to turn this into objects?</p>
  
  <p>Here is a Struct that it could be decoded as,</p>
  
  <pre><code>struct MyJSONData: Decodable {
  
      var myInfo: Dictionary&lt;String, [[Any]]&gt;?
      ...
  }
  </code></pre>
  
  <p>However, if there is a better way to structure the struct, Im all ears!</p>
  
  <p>Thanks in advance.</p>