How to use JSON to TOML Converter
Using this converter is incredibly straightforward. Just follow these steps:
- Paste your Code: Copy your JSON data from your source file and paste it into the top box labeled “JSON Input.”
- Convert: Click the dark blue “Convert to TOML” button. The tool will immediately process the syntax.
- Review: Your new code will appear in the bottom box labeled “TOML Output.”
- Copy or Clear: Click the “Copy TOML” button to save the result to your clipboard. If you need to start over, hit the “Clear” button to empty both fields.
Example Conversion
To help you understand how the conversion works, here is a simple example of the input and the resulting output.
Input (JSON):
JSON
{
"title": "TOML Example",
"owner": {
"name": "Tom Preston-Werner",
"dob": "1979-05-27T07:32:00-08:00"
},
"database": {
"server": "192.168.1.1",
"ports": [ 8001, 8001, 8002 ]
}
}
Output (TOML):
Ini, TOML
title = "TOML Example"
[owner]
name = "Tom Preston-Werner"
dob = "1979-05-27T07:32:00-08:00"
[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
You Might Also Need: JSON to Text