{"uid":"cap_PG39xlqT1WaGY_94c48lq","slug":"agent402-tools-json-to-csv-converter-d94102e9","name":"agent402.tools JSON to CSV Converter","description":"Convert a JSON array of objects to CSV. Nested objects are flattened to dot-path columns.","url":"https://agent402.tools/api/json-to-csv","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"description":"Array of objects (or a JSON string of one)"},"delimiter":{"type":"string","description":"Default ,"}}},"responseSchema":{"type":"json","example":{"csv":"name,role.title\nAda,Engineer\n","rows":1,"columns":2}},"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_lJhCRO05vuWlrnu2TjQQq","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 a JSON array of objects to CSV format, flattening nested objects into dot-path columns","exampleAgentPrompt":"Convert this JSON array to CSV for me — it has nested objects I need flattened into dot-path columns: [{\"name\":\"Alice\",\"address\":{\"city\":\"NYC\",\"zip\":\"10001\"}},{\"name\":\"Bob\",\"address\":{\"city\":\"LA\",\"zip\":\"90001\"}}] — use a comma delimiter.","exampleUseCases":null,"resultDescription":"Returns a CSV-formatted string with headers derived from the JSON object keys (nested keys expressed as dot-path columns like 'address.city'), and one row per object in the input array.","failureModes":["Invalid or non-array JSON input returns an error","Malformed JSON string fails to parse","Deeply nested or circular references may cause unexpected column naming","Empty array input returns only headers or an empty response","Delimiter value not accepted if multi-character or special character"],"whenToPreferThis":"Use this endpoint when you have a JSON array of objects — possibly with nested sub-objects — and need a flat CSV representation suitable for spreadsheets or downstream data pipelines, especially when dot-path flattening of nested keys is desired.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.348Z","isFirstParty":false}