Original post

Hello,

In a for loop in that does HTTP GET requests to a group of links, what would be the best approach to joining the output of each HTTP JSON response under one single array object?

    		req, err := http.NewRequest(http.MethodGet, servers.Sites[i].URLs, nil)

    		if err != nil {
    			log.Println(err)
    		}
    }

I would like to view the responses joined under one object, like this, under the “vm” object:

output := Output{
            Success:   true,
            Vm:        <JSON outputs here, each separated by comma>
        } (edited)