code: func Encode(w http.ResponseWriter, v interface{}) error {
  	if v == nil {
  		// Empty JSON body "{}"
  		v = map[string]interface{}{}
  	}
  
  	return json.NewEncoder(w).Encode(v)
  }
docs: // Encode json encodes v into w.