func objectToString(obj interface{}) string {
	switch content := obj.(type) {
	case string:
		return content
	default:
		jsonString, err := json.Marshal(obj)
		if err != nil {
			log.Println("[DEBUG] objectToString: error unmarshaling object into string:", err.Error())
			return ""
		}
		return string(jsonString)
	}
}
func objectToString(obj interface{}) string {
	switch content := obj.(type) {
	case string:
		return content
	default:
		jsonString, err := json.Marshal(obj)
		if err != nil {
			log.Println("[DEBUG] objectToString: error unmarshaling object into string:", err.Error())
			return ""
		}
		return string(jsonString)
	}
}
func objectToString ( obj interface { } ) string { switch content := obj . ( type ) { case string : return content default : jsonString , err := json . Marshal ( obj ) if err != nil { log . Println ( " " , err . Error ( ) ) return " " } return string ( jsonString ) } }
// Takes an object and converts it to a JSON representation
Takes an object and converts it to a JSON representation