{"uid":"cap_CfvL-C08qP0-c4qLtzu4_","slug":"agent402-tools-json-jsonl-converter-c67d1480","name":"agent402.tools JSON/JSONL Converter","description":"Convert between a JSON array and JSONL/NDJSON (one JSON object per line). mode: to-jsonl (array → lines) or from-jsonl (lines → array). For streaming records to and from agents and datasets.","url":"https://agent402.tools/api/jsonl","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"array (to-jsonl) or JSONL string (from-jsonl)"},"mode":{"type":"string","description":"to-jsonl | from-jsonl"}}},"responseSchema":{"type":"json","example":{"mode":"to-jsonl","count":2,"result":"{\"a\":1}\n{\"a\":2}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_i6EJPLpT0GbmsZFLf_G51","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between a JSON array and JSONL/NDJSON format (one JSON object per line) in either direction.","exampleAgentPrompt":"Convert this JSON array to JSONL format (one object per line): [{\"id\":1,\"name\":\"Alice\"},{\"id\":2,\"name\":\"Bob\"}] — use to-jsonl mode.","exampleUseCases":null,"resultDescription":"Returns the converted data: either a JSONL string with one JSON object per line (to-jsonl mode) or a parsed JSON array (from-jsonl mode).","failureModes":["Invalid JSON array provided in to-jsonl mode — malformed JSON returns an error","Non-JSONL string provided in from-jsonl mode — lines that aren't valid JSON objects cause parse failures","Missing or invalid mode value — unknown mode strings may return an error","Empty input data — may return empty output or an error depending on implementation"],"whenToPreferThis":"Use this endpoint when you need a simple, cheap ($0.001 USDC) stateless conversion between JSON array and JSONL/NDJSON formats, especially in agent pipelines that stream records or ingest datasets line-by-line. Prefer it over writing custom serialization code when working in an x402 payment-enabled agentic environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:50:48.829Z","isFirstParty":false}