title: json error, cannot unmarshal object into Go value
body: <p>I have this JSON data:</p>
  
  <pre><code>{
  "InfoA" : [256,256,20000],
  "InfoB" : [256,512,15000],
  "InfoC" : [208,512,20000],
  "DEFAULT" : [256,256,20000]
  }
  </code></pre>
  
  <p>With <a href="https://mholt.github.io/json-to-go/" rel="nofollow noreferrer">JSON-to-Go</a>, I get this Go type definition:</p>
  
  <pre><code>type AutoGenerated struct {
      InfoA   []int `json:"InfoA"`
      InfoB   []int `json:"InfoB"`
      InfoC   []int `json:"InfoC"`
      DEFAULT []int `json:"DEFAULT"`
  }
  </code></pre>
  
  <p>With this code (<a href="https://play.golang.org/p/k_ly0IGH1A" rel="nofollow noreferrer">play.golang.org</a>)</p>
  
  <pre><code>package main
  
  import (
      "encoding/json"
      "fmt"
      "os"
      "strings"
  )
  
  func main() {
      type paramsInfo struct {
          InfoA   []int `json:"InfoA"`
          InfoB   []int `json:"InfoB"`
          InfoC   []int `json:"InfoC"`
          DEFAULT []int `json:"DEFAULT"`
      }
      rawJSON := []byte(`{
  "InfoA" : [256,256,20000],
  "InfoB" : [256,512,15000],
  "InfoC" : [208,512,20000],
  "DEFAULT" : [256,256,20000]
  }`)
      var params []paramsInfo
      err := json.Unmarshal(rawJSON, &amp;params)
      if err != nil {
          fmt.Println(err.Error())
          os.Exit(1)
      }
  }
  </code></pre>
  
  <p>I get error <code>json: cannot unmarshal object into Go value of type []main.paramsInfo</code> </p>
  
  <p>I don't understand why. Can you help me?</p>