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`.

def save_json(obj, filename, **kwargs):
    """
    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`.
    """

    with open(filename, 'w', encoding='utf-8') as f:
        json.dump(obj, f, **kwargs)