code: func (h *Handler) writeJSONQueryResponse(w io.Writer, resp *pilosa.QueryResponse) error {
  	return json.NewEncoder(w).Encode(resp)
  }
docs: // writeJSONQueryResponse writes the response from the executor to w as JSON.