def dict_jsonify(param):
    """Convert the parameter into a dictionary before calling jsonify, if it's not already one"""
    if not isinstance(param, dict):
        param = dict(param)
    return jsonify(param)