

def _parse_content(self, text):
    'Parses the content of a response doc into the correct\n        format for .state.\n        '
    try:
        return json.loads(text)
    except ValueError:
        raise exc.UnexpectedlyNotJSON("The resource at {.uri} wasn't valid JSON", self)

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py HALNavigatorBase._parse_content/original