package utils import ( "encoding/json" ) func Json(data interface{}) string { jsonBytes, _ := json.MarshalIndent(data, "", " ") return string(jsonBytes) }