package util

import (
	"encoding/json"
)

func String(v interface{}) string {
	e, _ := json.Marshal(v)
	return string(e[:])
}

func StringPrettify(v interface{}) string {
	e, _ := json.MarshalIndent(v, "", "  ")
	return string(e[:])
}

package util

import (
	"encoding/json"
)

func String(v interface{}) string {
	e, _ := json.Marshal(v)
	return string(e[:])
}

--- 
+++ 
@@ -8,3 +8,8 @@
 	e, _ := json.Marshal(v)
 	return string(e[:])
 }
+
+func StringPrettify(v interface{}) string {
+	e, _ := json.MarshalIndent(v, "", "  ")
+	return string(e[:])
+}
Add a string prettify method which formats the json nicely
