{"uid":"cap_7JQAvn4B_0QN0gGVL8KzD","slug":"json-to-csv-converter-f12b9e40","name":"JSON to CSV Converter","description":"Pay-per-call tools settled in USDC over the x402 protocol. Every tool answers 402 with machine-readable payment instructions; pay and retry to get the result.","url":"https://claudemadeagent-production.up.railway.app/tools/json2csv","method":"POST","headers":{},"bodySchema":{"type":"object","required":["rows"],"properties":{"rows":{"type":"array","description":"Array of JSON objects, one per CSV row."},"header":{"type":"boolean","description":"Emit a header row. Default true."},"columns":{"type":"array","description":"Explicit column order/subset. Default: union of keys, first-seen order."},"delimiter":{"type":"string","description":"Single-character delimiter. Default \",\"."}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R8XmpRI9SFCY1mYwCg_85","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an array of JSON objects into a CSV string, with configurable headers, column ordering, and delimiters, settled via micropayment over x402.","exampleAgentPrompt":"Convert these JSON records into a CSV — use a semicolon as the delimiter, include a header row, and order the columns as 'id', 'name', 'email': [{\"id\":1,\"name\":\"Alice\",\"email\":\"alice@example.com\"},{\"id\":2,\"name\":\"Bob\",\"email\":\"bob@example.com\"}].","exampleUseCases":[{"title":"Export API data for spreadsheet analysis","prompt":"I've got a JSON array of sales records from our API response — can you convert it to CSV with a header row and columns in this order: date, product, quantity, revenue? I'll drop it into Excel."},{"title":"Generate pipe-delimited data file","prompt":"Take these JSON objects and convert them to a pipe-delimited text file with a header row — I need to load it into our legacy billing system that doesn't accept commas."},{"title":"Subset columns for data sharing","prompt":"Convert this JSON array to CSV but only include the 'user_id', 'email', and 'signup_date' columns — I'm sharing it with a partner and don't want the other fields in there."}],"resultDescription":"Returns a CSV-formatted string derived from the input JSON object array, with an optional header row listing column names, rows corresponding to each JSON object, values separated by the specified delimiter (default comma), and columns in the specified or inferred order.","failureModes":["Missing required 'rows' field returns a validation error","Non-array value for 'rows' causes a schema rejection","Delimiter longer than one character is rejected","Payment not received results in a 402 response with machine-readable payment instructions before the result is returned","Inconsistent keys across JSON objects may produce sparse/misaligned columns if no explicit column list is provided"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON-to-CSV conversion without standing up your own transformation logic — especially useful in agent pipelines where data from an API or tool needs to be immediately exported to a spreadsheet or legacy system. Prefer it over generic code execution when you want a deterministic, schema-validated conversion with configurable column ordering and delimiters, settled cheaply in USDC at $0.005 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T18:43:41.267Z","isFirstParty":false}