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.
I currently have:
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
How do I make it so that I can include strings and ints within the same map?
Thanks