Golang - convert array / map to JSON
<p>I am trying to convert a map[] to JSON so I can post it as part of a request. But my map[] has various types including strings / ints.</p>

<p>I currently have:</p>

<pre><code>mapD := map[string]string{"deploy_status": "public", "status": "live", "version": 2}
mapB, _ := json.Marshal(mapD)
fmt.Println(string(mapB))

//output
prog.go:17: cannot use 2 (type int) as type string in map value
</code></pre>

<p>How do I make it so that I can include strings and ints within the same map?</p>

<p>Thanks</p>