{"uid":"cap_7FJeJ6xP_HZdJsfNWPiVT","slug":"agent402-tools-csv-to-json-converter-eda1a732","name":"agent402.tools CSV to JSON Converter","description":"Parse CSV (quoted fields supported) into a JSON array of objects, using the first row as headers (header=false for arrays).","url":"https://agent402.tools/api/csv-to-json","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","description":"CSV text (max 100KB)"},"header":{"type":"boolean","description":"First row is headers (default true)"},"delimiter":{"type":"string","description":"Default ,"}}},"responseSchema":{"type":"json","example":{"rows":[{"age":"36","name":"Ada"}],"count":1}},"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_okPKh3WssVYdrgu4IayHJ","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":"Parses CSV text (with quoted field support) into a JSON array of objects or arrays, using the first row as headers by default","exampleAgentPrompt":"Can you convert this CSV data into JSON objects using the first row as headers and a semicolon as the delimiter? The CSV is: 'name;age;city\\nAlice;30;New York\\nBob;25;London'","exampleUseCases":null,"resultDescription":"A JSON array of objects where each row becomes an object with keys from the header row, or a JSON array of arrays if header=false. Quoted fields and custom delimiters are handled correctly.","failureModes":["CSV exceeds 100KB limit — request rejected","Malformed CSV with unmatched quotes — parse error returned","Invalid delimiter value — error or unexpected parsing behavior","Empty CSV input — empty array returned","Network or payment failure — 402 or 5xx error"],"whenToPreferThis":"Use this endpoint when you need reliable CSV-to-JSON parsing with quoted field support, custom delimiters (e.g. semicolon, tab), and optional header row control. Ideal for agents processing tabular data exports before further analysis or storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.349Z","isFirstParty":false}