Dynamically Creating JSON by Golang
obj := map[string]interface{}{} obj["hoge"] = "huga" fmt.Println(obj)
Go Playground