def _parse_json(text): try: return json.loads(text) except ValueError as e: trace = sys.exc_info()[2] raise ParseException(str(e)), None, trace
def parse_response(response): res = json.loads(response.text) return res ['location']
def loads(s): return json.loads(to_json(s))