code: public function setJson($toggle)
  	{
  		$this->setEncoding($toggle ? Request::ENCODING_JSON : Request::ENCODING_QUERY);
  
  		return $this;
  	}
docs: Set whether the response should be JSON or not.
  
  @param boolean $toggle
  
  @deprecated Use setEncoding(Request::ENCODING_JSON)