From Cargo.toml to Curly Braces: What Survives the Trip
Your Rust or Python project keeps its settings in Cargo.toml or pyproject.toml, but the dashboard, API, or JavaScript script that needs them only speaks JSON. Converting turns TOML tables into nested objects and arrays of tables (the [[double bracket]] kind) into arrays of objects, so the structure carries over intact.
Some things don't survive. Comments vanish, because JSON has no comments. TOML's native dates and times become plain strings, so your code has to parse them again. Very large integers can also lose precision when JavaScript reads them, since it can't exactly represent whole numbers beyond 2^53. Check those before you ship.
What are TOML and JSON?
TOML: fmt.toml
JSON: structured data used by most web applications
How it works
- Choose your TOML file.
- Check that JSON is selected and press convert.
- Download your new file. We delete both files automatically.
