Package jsontoml is a program that converts JSON to TOML.
Reading from stdin:
cat file.json | jsontoml > file.toml
Reading from a file:
jsontoml file.json > file.toml
Using Go:
go install github.com/pelletier/go-toml/v2/cmd/jsontoml@latest