from typing import Any
import json


def to_json(path: str, output: Any) -> None:
    """
    Writes output to json file

    Args:
        path (str): Output path
        output (Any): Content to output
    """
    with open(path, "w") as stream:
        return json.dump(output, stream)