title: Decoding a list of JSONs in Swift that's not encapsulated in a parent JSON
body: <p>So the following is what is returned by the endpoint. Is there a better way to decode this into an array of objects other than turning the data into a string, appending strings to make it a valid JSON, then turning that string back into data and decoding it...</p>
  <p>edit: my proposed solution wouldn't even work that well as there are no commas between the objects</p>
  <p>edit2: is regex my only answer here F</p>
  <p>would be so much easier if it was just encapsulated in { restaurants: [] } :(</p>
  <pre><code>    {&quot;address&quot;: {&quot;building&quot;: &quot;8825&quot;, &quot;coord&quot;: [-73.8803827, 40.7643124], &quot;street&quot;: &quot;Astoria Boulevard&quot;, &quot;zipcode&quot;: &quot;11369&quot;}, &quot;borough&quot;: &quot;Queens&quot;, &quot;cuisine&quot;: &quot;American&quot;, &quot;grades&quot;: [{&quot;date&quot;: {&quot;$date&quot;: 1416009600000}, &quot;grade&quot;: &quot;Z&quot;, &quot;score&quot;: 38}, {&quot;date&quot;: {&quot;$date&quot;: 1398988800000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 10}, {&quot;date&quot;: {&quot;$date&quot;: 1362182400000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 7}, {&quot;date&quot;: {&quot;$date&quot;: 1328832000000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 13}], &quot;name&quot;: &quot;Brunos On The Boulevard&quot;, &quot;restaurant_id&quot;: &quot;40356151&quot;}
      {&quot;address&quot;: {&quot;building&quot;: &quot;2206&quot;, &quot;coord&quot;: [-74.1377286, 40.6119572], &quot;street&quot;: &quot;Victory Boulevard&quot;, &quot;zipcode&quot;: &quot;10314&quot;}, &quot;borough&quot;: &quot;Staten Island&quot;, &quot;cuisine&quot;: &quot;Jewish/Kosher&quot;, &quot;grades&quot;: [{&quot;date&quot;: {&quot;$date&quot;: 1412553600000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 9}, {&quot;date&quot;: {&quot;$date&quot;: 1400544000000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 12}, {&quot;date&quot;: {&quot;$date&quot;: 1365033600000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 12}, {&quot;date&quot;: {&quot;$date&quot;: 1327363200000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 9}], &quot;name&quot;: &quot;Kosher Island&quot;, &quot;restaurant_id&quot;: &quot;40356442&quot;}
      {&quot;address&quot;: {&quot;building&quot;: &quot;7114&quot;, &quot;coord&quot;: [-73.9068506, 40.6199034], &quot;street&quot;: &quot;Avenue U&quot;, &quot;zipcode&quot;: &quot;11234&quot;}, &quot;borough&quot;: &quot;Brooklyn&quot;, &quot;cuisine&quot;: &quot;Delicatessen&quot;, &quot;grades&quot;: [{&quot;date&quot;: {&quot;$date&quot;: 1401321600000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 10}, {&quot;date&quot;: {&quot;$date&quot;: 1389657600000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 10}, {&quot;date&quot;: {&quot;$date&quot;: 1375488000000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 8}, {&quot;date&quot;: {&quot;$date&quot;: 1342569600000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 10}, {&quot;date&quot;: {&quot;$date&quot;: 1331251200000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 13}, {&quot;date&quot;: {&quot;$date&quot;: 1318550400000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 9}], &quot;name&quot;: &quot;Wilken'S Fine Food&quot;, &quot;restaurant_id&quot;: &quot;40356483&quot;}
      {&quot;address&quot;: {&quot;building&quot;: &quot;6409&quot;, &quot;coord&quot;: [-74.00528899999999, 40.628886], &quot;street&quot;: &quot;11 Avenue&quot;, &quot;zipcode&quot;: &quot;11219&quot;}, &quot;borough&quot;: &quot;Brooklyn&quot;, &quot;cuisine&quot;: &quot;American&quot;, &quot;grades&quot;: [{&quot;date&quot;: {&quot;$date&quot;: 1405641600000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 12}, {&quot;date&quot;: {&quot;$date&quot;: 1375142400000}, &quot;grade&quot;: &quot;A&quot;, &quot;score&quot;: 12}, {&quot;date&quot;: {&quot;$date&quot;: 1360713600000}
  </code></pre>