docs: def make_serializable(json):
      """This function ensures that the dictionary is JSON serializable. If not,
      keys with non-serializable values are removed from the return value.
  
      Args:
          json (dict): Dictionary to convert to serializable
  
      Returns:
          new_dict (dict): New dictionary with non JSON serializable values removed
      """
      new_dict = dict()
      for key, value in iteritems(json):
          if is_valid_json(value):
              new_dict[key] = value
  
      return new_dict