CSV to JSON with type inference
csv_to_jsonConvert CSV to JSON rows with per-column type inference (integer, number, boolean, null, string), delimiter auto-detection and a generated JSON Schema. Leading-zero codes (ZIP, CLABE) stay strings. Price: 0.01 USDC per successful call on Base via x402 (pass the signed payment in _meta['x402/payment']; failed calls are not charged). HTTP equivalent: POST https://json-canon-x402.fly.dev/v1/csv-to-json.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "csv_to_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | CSV text (UTF-8). Max 1 MiB, 20,000 rows, 512 columns. | |
| header | No | First row holds column names. | |
| output | No | objects | |
| delimiter | No | Auto-detected among , ; TAB | if omitted. | |
| csv_base64 | No | Alternative to 'csv': base64 bytes (UTF-8 or Latin-1). | |
| infer_types | No | Infer integer/number/boolean/null per column. | |
| null_values | No | Strings treated as null (empty is always null). | |
| parse_booleans | No | Map true/false/yes/no/si to booleans. |