def METHOD_NAME(response):
    """
    Parses the response body as JSON and returns it. WebOb added the property
    json_body (alias json) in version 1.2
    :param response: A WebOb response object
    """
    current_webob = LooseVersion(
        pkg_resources.get_distribution("webob").version
    )
    if current_webob >= LooseVersion("1.2"):
        return response.json_body
    else:
        return json.loads(response.body, encoding=response.charset)