def _params_from_request(request):
    """
    Pull the relevant parameters off the request.

    Parameters
    ----------
    request : :class:`~pyramid.request.Request`

    Returns
    -------
    params : dict
    loads : bool
        If true, any lists/dicts in the params need to be json decoded

    """
    content_type = request.headers.get('Content-Type', '').split(';')[0]
    if content_type == 'application/json':
        return request.json_body, False
    else:
        return request.params, True