title: Issues in Go with JSON unmarshal of map[string]int64
body: <p>I am having issue with JSON unmarshal to a Go structure. Visibly the source of the issue is understable - a string is coming for the int64, except that I am not finding ways to solve it without changing the datatype of Count to map[string]string. I saw similar discussions on SO, but they didn't help much. Here is a representative code and the issue. Please suggest how I can get through.</p>
  
  <pre class="lang-golang prettyprint-override"><code>type Product struct {
      Count  map[string]int64 `json:",string"`
  }
  
  func main() {
      s := `{"count":{"FAN":"58"}}`
  
      var pro Product
      err := json.Unmarshal([]byte(s), &amp;pro)
      if err == nil {
          fmt.Printf("%+v\n", pro)
      } else {
          fmt.Println(err)
          fmt.Printf("%+v\n", pro)
      }
  }
  </code></pre>
  
  <p>Output:</p>
  
  <blockquote>
    <p>json: cannot unmarshal string into Go struct field Product.Count of type int64
    {Count:map[FAN:0]}</p>
  </blockquote>