77trust / 100

Csv To Json

by CSV to JSON Converter in Documents & files

x402 APIPassing, checked 3 h ago

CSV to JSON converter — parse RFC 4180 comma-separated UTF-8 tables for inventory and data import; return object rows with headers or a string matrix. Preserves quoted fields and line breaks, checks equal row widths and unique nonempty headers, and keeps numeric-looking cells as strings.

POST https://data-tools.use.x402atlas.com/csv-to-json

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
421 ms typical, 493 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://data-tools.use.x402atlas.com/csv-to-json' \
  -H 'content-type: application/json' \
  --data-raw '{"csv":"\"aaa\",\"b\r\nbb\",\"ccc\"\r\nzzz,yyy,xxx\r\n","header":false}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdata-tools.use.x402atlas.com%2Fcsv-to-json
const res = await pay("https://data-tools.use.x402atlas.com/csv-to-json", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"csv\":\"\\\"aaa\\\",\\\"b\\r\\nbb\\\",\\\"ccc\\\"\\r\\nzzz,yyy,xxx\\r\\n\",\"header\":false}",
});
console.log(await res.json());

Example input

{
  "csv": "\"aaa\",\"b\r\nbb\",\"ccc\"\r\nzzz,yyy,xxx\r\n",
  "header": false
}

Example output

{
  "algorithm_version": "rfc4180-atlas-v1",
  "column_count": 3,
  "columns": [],
  "input": {
    "header": false
  },
  "operation": "csv-to-json",
  "row_count": 2,
  "rows": [
    [
      "aaa",
      "b\r\nbb",
      "ccc"
    ],
    [
      "zzz",
      "yyy",
      "xxx"
    ]
  ],
  "warnings": []
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402421 ms$0.01
7 h agoPassed402514 ms$0.01
11 h agoPassed402421 ms$0.01
15 h agoPassed402462 ms$0.01
19 h agoPassed402471 ms$0.01
22 h agoPassed402398 ms$0.01
26 h agoPassed402446 ms$0.01
30 h agoPassed402436 ms$0.01
33 h agoPassed402493 ms$0.01
37 h agoPassed402456 ms$0.01
40 h agoPassed402464 ms$0.01
44 h agoPassed402409 ms$0.01
2 days agoPassed402463 ms$0.01
2 days agoPassed402108 ms$0.01
2 days agoPassed402116 ms$0.01