public function getJSON($url, $query = [])
    {
        $responseBody = $this->get($url, $query, 'application/json');

        return json_decode($responseBody);
    }
public function getJSON($url, $query = [])
    {
        $responseBody = $this->get($url, $query, 'application/json');

        return json_decode($responseBody);
    }
public function getJSON ( $ url , $ query = [ ] ) { $ responseBody = $ this -> get ( $ url , $ query , 'application/json' ) ; return json_decode ( $ responseBody ) ; }
Make a GET request, accepting JSON.

@param string $url
@param array  $query

@return \stdClass JSON response as an object.
Make a GET request accepting JSON .