public function newJsonRequest($method, $url, $data = array())
	{
		return $this->newRequest($method, $url, $data, Request::ENCODING_JSON);
	}
public function newJsonRequest($method, $url, $data = array())
	{
		return $this->newRequest($method, $url, $data, Request::ENCODING_JSON);
	}
public function newJsonRequest ( $ method , $ url , $ data = array ( ) ) { return $ this -> newRequest ( $ method , $ url , $ data , Request :: ENCODING_JSON ) ; }
Create a new JSON request and set its values.

@param  string $method  get, post etc
@param  string $url
@param  mixed  $data    POST data

@return Request
Create a new JSON request and set its values .