json: cannot unmarshal object into Go value of type error with certain values : <p>Can I decode certain values from json to a struct? I am getting a response like this  <a href="https://developer.github.com/v3/gists/#response-5" rel="nofollow noreferrer">https://developer.github.com/v3/gists/#response-5</a> when creating a gist and I created a struct like so:</p>

<pre><code>type GistResponse struct {
    HTMLURL string `json:"html_url"`
    Public  bool   `json:"public"`
}
</code></pre>

<p>But when I try to decode the json response the above struct I get a :</p>

<pre><code>json: cannot unmarshal object into Go value of type []main.GistResponse
</code></pre>

<p>Thanks</p>
