Convert data between JSON, CSV, XML, and YAML formats. Supports all cross-format conversions plus JSON prettify/minify. Payment via x402.
Any combination of: json, csv, xml, yaml. Also supports JSON → JSON for prettify/minify.
| Field | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Input data as a string |
from | string | Yes | Source format: json, csv, xml, yaml |
to | string | Yes | Target format: json, csv, xml, yaml |
options | object | No | { pretty: true } or { minify: true } for JSON→JSON |
{
"output": "name,age\r\nAlice,30\r\nBob,25",
"from": "json",
"to": "csv",
"inputSize": 51,
"outputSize": 26
}
$0.002 USDC per conversion
curl -X POST "https://pylon-data-formatter-api.fly.dev/convert" \
-H "Content-Type: application/json" \
-d '{"input": "[{\"name\":\"Alice\",\"age\":30}]", "from": "json", "to": "csv"}'