public function putJSON($url, $data)
    {
        $responseBody = $this->put($url, json_encode($data), 'application/json');

        return json_decode($responseBody);
    }
public function putJSON($url, $data)
    {
        $responseBody = $this->put($url, json_encode($data), 'application/json');

        return json_decode($responseBody);
    }
public function putJSON ( $ url , $ data ) { $ responseBody = $ this -> put ( $ url , json_encode ( $ data ) , 'application/json' ) ; return json_decode ( $ responseBody ) ; }
Make a PUT request, sending JSON data.

@param string $url
@param $data

@return \stdClass
Make a PUT request sending JSON data .