Keep a TOML integer and boolean typed in JSON
Example input
port = 8080
enabled = trueExpected result
{
"port": 8080,
"enabled": true
}Choose TOML to JSON. Both values retain their basic types instead of becoming strings. A successful conversion checks supported syntax and representability, not whether those keys are recognized by an application. Compare the output with the actual configuration schema before replacing a working file.