sing-box uses JSON for configuration files.
{ "log": {}, "dns": {}, "inbounds": {}, "outbounds": {}, "route": {} }
log
dns
inbounds
outbounds
route
$ sing-box check
$ sing-box format -w