77trust / 100

Json To Csv

by JSON to CSV Converter in Documents & files

x402 APIPassing, checked 3 h ago

JSON to CSV converter — export JSON rows to deterministic RFC 4180 UTF-8 CSV for spreadsheets and data export, using explicit column order or a scalar matrix. Returns byte/row counts, default formula escaping and null-loss warnings; null becomes empty text and nested cells are rejected.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
435 ms typical, 551 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/json-to-csv' \
  -H 'content-type: application/json' \
  --data-raw '{"formula_policy":"escape","rows":[["aaa","b\r\nbb","ccc"],["zzz","yyy","xxx"]]}'
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%2Fjson-to-csv
const res = await pay("https://data-tools.use.x402atlas.com/json-to-csv", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"formula_policy\":\"escape\",\"rows\":[[\"aaa\",\"b\\r\\nbb\",\"ccc\"],[\"zzz\",\"yyy\",\"xxx\"]]}",
});
console.log(await res.json());

Example input

{
  "formula_policy": "escape",
  "rows": [
    [
      "aaa",
      "b\r\nbb",
      "ccc"
    ],
    [
      "zzz",
      "yyy",
      "xxx"
    ]
  ]
}

Example output

{
  "algorithm_version": "rfc4180-atlas-v1",
  "column_count": 3,
  "csv": "aaa,\"b\r\nbb\",ccc\r\nzzz,yyy,xxx\r\n",
  "escaped_cells": 0,
  "input": {
    "columns": [],
    "formula_policy": "escape"
  },
  "null_policy": "empty",
  "operation": "json-to-csv",
  "row_count": 2,
  "utf8_bytes": 30,
  "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 agoPassed402551 ms$0.01
7 h agoPassed402497 ms$0.01
11 h agoPassed402467 ms$0.01
15 h agoPassed402441 ms$0.01
19 h agoPassed402435 ms$0.01
22 h agoPassed402461 ms$0.01
26 h agoPassed402424 ms$0.01
29 h agoPassed402474 ms$0.01
33 h agoPassed402402 ms$0.01
37 h agoPassed402437 ms$0.01
40 h agoPassed402123 ms$0.01
44 h agoPassed402777 ms$0.01
2 days agoPassed402438 ms$0.01
2 days agoPassed402391 ms$0.01
2 days agoPassed402413 ms$0.01