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