code: def _json_request(self, method, path, data):
          
  
          response = self._request(method, path, data=data)
          _raise_for_status(response)
          if len(response.data) > 0:
              return _json_from_response(response)
          return response.data
docs: Issue request against the crate HTTP API.