def _json_payload(request):
    """
    Return a parsed JSON payload for the request.

    :raises PayloadError: if the body has no valid JSON body
    """
    try:
        return request.json_body
    except __HOLE__:
        raise PayloadError()
dataset/ETHPy150Open hypothesis/h/h/api/views.py/_json_payload