json2toon.co
Secure

API Documentation

Identify API endpoints to programmatically convert your data to TOON format.

Convert to TOON

The primary endpoint to convert various data formats into TOON.

POST https://json2toon.co/api/v1/toon

Try it out

Response will appear here...

Request Body

The API accepts a JSON body with the following structure:

JSON

{
  "content": "string", // The content to convert (JSON, CSV, YAML, etc.)
  "format": "string"   // Optional: "json" | "csv" | "yaml" | "xml" | "toml"
}
Note: Without specifying format, the response may take longer due to auto-detection.

Example Request

curl -X POST https://json2toon.co/api/v1/toon \
  -H "Content-Type: application/json" \
  -d '{
    "content": "{\"name\": \"John\", \"age\": 30}",
    "format": "json"
  }'

Response

name: Bob
age: 25

Rate Limiting

The API is currently rate-limited to ensure fair usage. Please contact us if you need higher limits.