json_encode

json_encode

[code=golang]
func Json_encode(data interface{}) (string, error) {
	jsons, err := json.Marshal(data)
	return string(jsons), err
}
[/code]