x2j Convert xml to json. Installing go get -u github.com/tidwall/x2j Using jsondata, err := x2j.Convert(xmldata)