func JSON(writer http.ResponseWriter, v interface{}) {
	if body, err := json.Marshal(v); err != nil {
		ServerError(writer, err)
	} else {
		writer.Write(body)
	}
}
// JSON Writes the interface to the wire
JSON Writes the interface to the wire
// JSON Writes the interface to the wire
func JSON(writer http.ResponseWriter, v interface{}) {
	if body, err := json.Marshal(v); err != nil {
		ServerError(writer, err)
	} else {
		writer.Write(body)
	}
}
func JSON ( writer http . ResponseWriter , v interface { } ) { if body , err := json . Marshal ( v ) ; err != nil { ServerError ( writer , err ) } else { writer . Write ( body ) } }
JSON Writes the interface to the wire
JSON Writes the interface to the wire