code: def save_json(obj, filename, **kwargs):
      
  
      with open(filename, 'w', encoding='utf-8') as f:
          json.dump(obj, f, **kwargs)
docs: Save an object as a JSON file.
  
      Args:
          obj: The object to save. Must be JSON-serializable.
          filename: Path to the output file.
          **kwargs: Additional arguments to `json.dump`.