src/Mattbrown/Laracurl/Request.php
public function setJson($toggle)
	{
		$this->setEncoding($toggle ? Request::ENCODING_JSON : Request::ENCODING_QUERY);

		return $this;
	}
public function setJson($toggle)
	{
		$this->setEncoding($toggle ? Request::ENCODING_JSON : Request::ENCODING_QUERY);

		return $this;
	}
Set whether the response should be JSON or not.

@param boolean $toggle

@deprecated Use setEncoding(Request::ENCODING_JSON)