sing-box 使用 JSON 作为配置文件格式。
{
  "log": {},
  "dns": {},
  "ntp": {},
  "certificate": {},
  "endpoints": [],
  "inbounds": [],
  "outbounds": [],
  "route": {},
  "services": [],
  "experimental": {}
}
| Key | Format | 
|---|---|
| log | 日志 | 
| dns | DNS | 
| ntp | NTP | 
| certificate | 证书 | 
| endpoints | 端点 | 
| inbounds | 入站 | 
| outbounds | 出站 | 
| route | 路由 | 
| services | 服务 | 
| experimental | 实验性 | 
sing-box check
sing-box format -w -c config.json -D config_directory
sing-box merge output.json -c config.json -D config_directory