Convertir TOML configuration to JSON
Analyser a TOML config file (used by Rust, Python projects) into JSON for tooling that expects JSON input.
- 1
TOML is a config format with typed values, tables, and arrays of tables — used by Cargo, pyproject.toml, and others. Converting to JSON makes it consumable by tools that only speak JSON.
- 2 Convertisseur TOML →
Paste TOML. The tool parses tables, inline tables, arrays, datetime, and typed scalars into the equivalent JSON structure.
- 3 toml-convert → json-format
Use the chain to parse TOML and format the JSON output in one pass, with proper typing of dates and arrays.
Questions fréquentes
- How are TOML dates represented in JSON?
- TOML has native datetime types; JSON does not. The converter typically emits datetimes as ISO 8601 strings. Your consuming code must parse them back to Date objects.
- Can all TOML be converted to JSON?
- Yes — TOML's type system maps cleanly to JSON: tables become objects, arrays become arrays, scalars become strings/numbers/booleans. The conversion is lossless for valid TOML.
Workflows résolvant cette tâche
Comparer deux configs YAML via JSON
Convertir les configs YAML en JSON pour une comparaison diff-friendly des valeurs structurées. PIPELINE
Coder une charge utile JSON pour transport URL
Préparer un Document JSON pour un Paramètre URL: embellir, Coder en Base64, puis encodage pourcent — le inverse exacte de le chaîne de décodage de paramètres imbriqués. PIPELINE
HJSON en format JSON
Formater HJSON et convertir en JSON standard. PIPELINE
Formater JSON et calculer une somme de contrôle d'intégrité
Pretty-printer un document JSON et calculer une somme CRC32 pour détecter toute modification ultérieure. PIPELINE
Minifier et valider JSON
Formater JSON pour inspection et valider sa correction syntaxique en une passe. PIPELINE
Formater JSON et générer une interface TypeScript
Formater un document JSON puis inférer une définition d'interface TypeScript en une chaîne. PIPELINE
Valider, formater, puis convertir JSON en YAML
Convertir une config JSON (possiblement minifiée) en YAML, capturant les erreurs de syntaxe au premier nœud au lieu de produire un YAML subtilement erroné. PIPELINE
JSON5 en format JSON
Formater JSON5 et convertir en JSON standard. PIPELINE
JSONC en format JSON
Formater JSONC (JSON avec commentaires) et convertir en JSON standard. PIPELINE
Décoder et formater une charge utile JWT
Analyser un token JWT, extraire sa charge utile et formater le JSON pour inspection. PIPELINE
Analyser chaîne de requête et formater JSON
Analyser une chaîne de requête en paires clé-valeur puis formater en JSON. PIPELINE
Convertir TOML en JSON
Analyser un fichier de configuration TOML en JSON pour les outils et API attendant une entree JSON. PIPELINE
TOML en JSON puis CSV
Convertir TOML en JSON puis en CSV pour l'export de donnees. PIPELINE
Convertir TOML en JSON puis YAML
Transformer une config TOML en YAML via JSON pour Kubernetes ou CI. PIPELINE
Convertir TOML en YAML via JSON
Transformer un fichier de configuration TOML en format YAML, utilisant JSON comme representation intermediaire. PIPELINE
Decoder un parametre URL imbrique (Base64 JSON)
Derouler un parametre URL transportant du JSON Base64 code URL en JSON formate lisible. PIPELINE
Generer des interfaces TypeScript depuis YAML
Convertir un document YAML en definitions d'interface TypeScript, utilisant JSON comme format intermediaire. PIPELINE