def _json_request(self, req_type, url, **kwargs):
response = self._request(req_type, url, **kwargs)<EOL>try:<EOL><INDENT>json_response = response.json()<EOL><DEDENT>except ValueError:<EOL><INDENT>logger.error("<STR_LIT>" %<EOL>(response, response.content))<EOL>raise LuminosoError('<STR_LIT>')<EOL><DEDENT>return json_response<EOL>
Make a request of the specified type and expect a JSON object in
response.

If the result has an 'error' value, raise a LuminosoAPIError with
its contents. Otherwise, return the contents of the 'result' value.