JSON CSV Markdown Table Converter and Validator
Convert JSON to CSV, CSV to JSON, and either one to a GitHub-style Markdown table. Flattens nested JSON into dot-notation columns and validates JSON or CSV with line-level error messages.
價格
US$0.0015 每次 conversion or validation. 透過你的 Apify 帳號按次計費,新帳號每月有免費額度。
範例
輸入:
{
"data": "[{\"name\":\"Alice\",\"age\":30},{\"name\":\"Bob\",\"age\":25}]",
"outputFormat": "csv"
}
輸出:
{
"inputFormat": "json",
"outputFormat": "csv",
"valid": true,
"rowCount": 2,
"columns": [
"name",
"age"
],
"error": "",
"output": "name,age\nAlice,30\nBob,25"
}
用程式呼叫(API)
curl -X POST "https://api.apify.com/v2/acts/sDCn2i0paKV2SdwfC/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"data":"[{\"name\":\"Alice\",\"age\":30},{\"name\":\"Bob\",\"age\":25}]","outputFormat":"csv"}'