TOML to JSON
toml-to-json · version 1.0.0 · YAML, TOML, INI, XML & TSV · free, no key needed
Convert a TOML string to a JSON object.
Use when you need to: toml to json · parse toml · convert toml to json.
Supported
- toml to json
- parse toml
- convert toml to json
Not supported
- json to toml
- read files
- fetch urls
Behavior
- Parses TOML syntax and returns the equivalent JSON representation.
- Complex types like Dates and BigInts are strictly rejected to prevent implicit serialization loss.
Input
toml(string, required): max length 262144
Output
- object
Limits
- max input bytes: 262144
Example
Request input:
{
"toml": "name = \"Ada\"\ncity = \"London\"\n"
}
Response:
{
"result": {
"name": "Ada",
"city": "London"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "toml-to-json",
"version": "1.0.0",
"input": {
"toml": "name = \"Ada\"\ncity = \"London\"\n"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/toml-to-json/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"toml":"name = \"Ada\"\ncity = \"London\"\n"}'
The machine-readable contract is at /v1/tools/toml-to-json/versions/1.0.0.
CLI
node cli.mjs run toml-to-json 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- INI to JSON: Convert an INI string to a JSON object.
- JSON to TOML: Convert JSON data to a TOML string.
- TSV to JSON: Convert a complete TSV document into an array of string-valued objects.
- XML to JSON: Convert an XML string to a JSON object.
- YAML to JSON: Convert a YAML string to a JSON object or array.
- JSON to INI: Convert JSON data to an INI string.