Serializes the plan data frame to JSON.
See also
Other output:
as_install_plan(),
write_dockerfile_snippet(),
write_install_script(),
write_report()
Examples
plan <- check_packages("xml2", platform = "ubuntu-22.04")
write_json(plan, file.path(tempdir(), "sysreqs.json"))
