Request::PUT_JSON() 

\nn\t3::Request()->PUT_JSON($url = '', $data = [], $headers = []); 

Sends a PUT request (via curl) to a server as JSON

\nn\t3::Request()->PUT_JSON( 'https://...', ['a'=>'123'] );
\nn\t3::Request()->PUT_JSON( 'https://...', ['a'=>'123'], ['Accept-Encoding'=>'gzip, deflate'] );
Copied!
@param string $url
@param array $data
@param array $headers
@return array

Source Code 

public function PUT_JSON( $url = '', $data = [], $headers = [] )
{
	return $this->POST( $url, json_encode($data), $headers, 'PUT' );
}
Copied!