code: func (a *API) writeJSON(j interface{}, res http.ResponseWriter) {
  	data, _ := json.Marshal(j)
  	res.Header().Set("Content-Type", "application/json; charset=utf-8")
  	res.Write(data)
  }
docs: // writeJSON writes `j` as JSON in response