code: func JSON(w http.ResponseWriter, code int, v interface{}, pretty bool) {
  
  	var bs []byte
  	var err error
  
  	if pretty {
  		bs, err = json.MarshalIndent(v, "", "  ")
  	} else {
  		bs, err = json.Marshal(v)
  	}
  
  	if err != nil {
  		ErrorAuto(w, err)
  		return
  	}
  	headers := w.Header()
  	headers.Add("Content-Type", "application/json")
  	Bytes(w, code, bs)
  
  	if pretty {
  		w.Write([]byte("\n"))
  	}
  }
docs: // JSON writes a response with the specified status code and object. The object
  // will be JSON serialized.