title: Read a slice from a json file in golang
body: <p>How do I read a slice from a <code>json</code> file in golang? For example, the file <code>data.json</code> looks like this:</p>
  
  <p><code>["a","b","c","d"]</code></p>
  
  <p>I have tried using <code>ioutil.ReadFile</code> to do this, but this returns a string, not a slice. How can I read my slice?<br>
  <strong>NOTE</strong>: You can sub the brackets <code>[]</code> for braces <code>{}</code><br>
  I have done this using structs, but I don't want the user to have to type in this complicated json stuff </p>