{"uid":"cap_GRTWYHYMn8WP7f1upTIhA","slug":"csv-to-json-json-to-csv-converter-d2c9bb63","name":"CSV to JSON / JSON to CSV Converter","description":"50 pay-per-call tools for agents over x402 (USDC on Base, Polygon, Solana): crypto market data, token audits, indicators, swap routing, web extraction, DNS/WHOIS/email checks, FX, weather and AI text/image tools.","url":"https://skinwinking.com/api/v1/util/csv-to-json?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","default":"to_json","description":"to_json or to_csv"},"text":{"type":"string","description":"CSV text, or a JSON array of objects when mode=to_csv"},"delimiter":{"type":"string","description":"Optional delimiter, auto-detected by default"}}},"responseSchema":{"type":"json","example":{"rows":[{"age":"30","name":"Ana"}],"columns":["name","age"]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_u-J5LBNZE1jOv7DacQmYH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts CSV text to a structured JSON array of objects (or JSON array back to CSV), with optional custom delimiter support.","exampleAgentPrompt":"Convert this CSV text into JSON for me — it uses a semicolon as the delimiter: 'name;age;city\\nAna;30;NYC\\nBob;25;LA'","exampleUseCases":[{"title":"ETL pipeline data normalization","prompt":"I have a CSV export from our CRM with comma-separated values — can you convert it to a JSON array so I can feed it into our processing pipeline? Here's the CSV: 'id,name,email\\n1,Alice,alice@example.com\\n2,Bob,bob@example.com'"},{"title":"Pipe-delimited log file parsing","prompt":"Parse this pipe-delimited log data into JSON so I can analyze it: 'timestamp|level|message\\n2024-01-01|ERROR|disk full\\n2024-01-02|INFO|restarted'"},{"title":"JSON records back to CSV export","prompt":"I have a JSON array of user records that I need converted back to CSV format for a spreadsheet report: '[{\"name\":\"Ana\",\"age\":30},{\"name\":\"Bob\",\"age\":25}]' — please set mode to to_csv"}],"resultDescription":"Returns a JSON object containing a 'rows' array (each element is an object keyed by column name) and a 'columns' array listing the detected field names. When mode=to_csv, returns the CSV-formatted text instead.","failureModes":["Malformed or inconsistent CSV may produce unexpected column mappings or empty rows","Incorrect mode value (not 'to_json' or 'to_csv') may cause errors or unexpected behavior","When mode=to_csv, non-array JSON input will likely cause a parsing error","Auto-delimiter detection may fail on ambiguous formats with multiple delimiter candidates","Payment failure over x402 results in 402 response before processing begins"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call CSV↔JSON conversion without standing up your own parser — especially useful in agent pipelines where tabular data from external sources (spreadsheets, APIs, logs) needs to be normalized into JSON for downstream processing, or when JSON records need to be serialized back to CSV. Supports auto-delimiter detection making it robust for varied file formats.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T12:49:04.149Z","isFirstParty":false,"canonicalSlug":"csv-to-json-json-to-csv-converter-d2c9bb63"}