def _get_json_response(self, resp):
if resp is not None and resp.text is not None:<EOL><INDENT>try:<EOL><INDENT>text = resp.text.strip('<STR_LIT:\n>')<EOL>if len(text) > <NUM_LIT:0>:<EOL><INDENT>return json.loads(text)<EOL><DEDENT><DEDENT>except ValueError as e:<EOL><INDENT>if self.debug:<EOL><INDENT>print("<STR_LIT>" % resp.text)<EOL><DEDENT>raise e<EOL><DEDENT><DEDENT>
Parse a JSON response