// WriteJSON writes JSON to an http.ResponseWriter
WriteJSON writes JSON to an http.ResponseWriter
// WriteJSON writes JSON to an http . ResponseWriter
func WriteJSON(w http.ResponseWriter, data interface{}) {
	bytes, err := json.Marshal(data)
	if err != nil {
		panic(err)
	}
	w.Write(bytes)
}
func WriteJSON ( w http . ResponseWriter , data interface { } ) { bytes , err := json . Marshal ( data ) if err != nil { panic ( err ) } w . Write ( bytes ) }
WriteJSON writes JSON to an http.ResponseWriter
WriteJSON writes JSON to an http . ResponseWriter