{"uid":"cap_GPJIsVz4zY8z5AXsAo33S","slug":"json-lines-parse-5bb53216","name":"JSON Lines Parse","description":"JSON Lines Parse: JSON Lines Parse parses bounded newline-delimited JSON into ordered values from bounded caller-supplied values without an external provider. Call JSON Lines Parse before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Lines Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First…","url":"https://api.delx.ai/api/v1/x402/json-lines-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8192,"description":"Text supplied to JSON Lines Parse; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"count":2,"items":[{"id":1},{"id":2}]},"schema":"delx/util-json-lines-parse/v1","status":"pass","evidence":{"retained":false,"input_sha256":"7c8b7ae6606b99a416fd3d8737d5c6b03c90c5a074ff9d25cbaf495aabdbaa39","external_calls":0},"operation":"data_batch:json_lines_parse"}},"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_OWe5-aklw1WZDwAnF3F4X","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":"Parses newline-delimited JSON (JSON Lines / JSONL) text into ordered, normalized values with counts and a versioned result contract","exampleAgentPrompt":"Parse this JSON Lines text into ordered, normalized records and give me the line count and a versioned result: '{\"id\":1,\"name\":\"Alice\"}\n{\"id\":2,\"name\":\"Bob\"}\n{\"id\":3,\"name\":\"Carol\"}'","exampleUseCases":[{"title":"Pre-process JSONL before downstream tool","prompt":"I have a JSONL payload I need to send to a downstream API, but it requires clean structured records — can you parse this JSON Lines text into normalized values with counts so I can verify it before handing it off? Here's the data: '{\"event\":\"click\",\"ts\":1700000001}\n{\"event\":\"view\",\"ts\":1700000002}'"},{"title":"Validate log file in JSONL format","prompt":"My service is outputting logs as JSON Lines — can you parse this JSONL snippet and tell me how many valid records there are and flag any issues? The text is: '{\"level\":\"info\",\"msg\":\"started\"}\n{\"level\":\"error\",\"msg\":\"failed\"}\nnot-valid-json'"},{"title":"Normalize batch plan records for agent pipeline","prompt":"Before I pass this batch plan to the next step in my agent workflow, parse this JSON Lines string into ordered normalized values and give me a versioned result contract: '{\"task\":\"summarize\",\"doc\":\"a\"}\n{\"task\":\"translate\",\"doc\":\"b\"}'"}],"resultDescription":"Returns a versioned deterministic JSON object containing: ordered normalized values extracted from each JSON Line, a record count, any validation findings (e.g. malformed lines), and a versioned result contract identifier for reproducibility.","failureModes":["Input text exceeds 8192 character limit — request rejected","Completely unparseable input (not JSONL at all) — returns validation error with zero valid records","Mixed valid/invalid lines — valid lines returned with findings noting malformed entries","Empty input string — returns zero count with empty ordered values","Payment failure via x402 — request not processed"],"whenToPreferThis":"Use this endpoint when an agent needs to reliably parse, normalize, and count records from a JSONL (newline-delimited JSON) payload before passing structured data to a downstream tool with a strict contract. Prefer it over ad-hoc string splitting when you need a versioned, deterministic result with explicit validation findings. Ideal for agent pipelines where auditability and a stable result contract matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:02:14.241Z","isFirstParty":false}