{"uid":"cap_w88KEkgD6D5WZOrUO4ZFs","slug":"signalharness-jsonl-normalize-validate-15dda4e7","name":"SignalHarness JSONL Normalize & Validate","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/jsonl_normalize_validate/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":65536,"minLength":1},"blankLinePolicy":{"enum":["ignore","reject"],"type":"string","maxLength":6,"minLength":6}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"records":[{"line":1,"value":{},"canonical":"example"}],"normalized":"example","validCount":0,"recordCount":0,"invalidCount":0,"rejectedLines":[{"line":1,"text":"Example caller-supplied content.","error":"example"}]},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"jsonl_normalize_validate","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"6cbd37ba1826039053fcb14ffb19aabb2e56aa4337811eac9b48b252f6839b2d","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9Lp6qjCk_FPKLgzdIHLl-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and validates a block of JSONL (newline-delimited JSON) text, returning parsed records, validity counts, and rejected line details.","exampleAgentPrompt":"I have a block of JSONL text I need cleaned up — can you normalize it and tell me which lines are valid, which are invalid, and show me any rejected lines? Reject blank lines rather than ignoring them.","exampleUseCases":[{"title":"Pre-ingestion pipeline data quality check","prompt":"Before I load this JSONL export into my database, can you validate every line and give me a count of how many records are valid versus malformed? Here's the text: {jsonl_blob}. Ignore any blank lines."},{"title":"Debugging malformed API log output","prompt":"I've got a stream of API logs in JSONL format and I think some lines got corrupted — can you normalize the text and list exactly which lines were rejected so I know what to fix? Treat blank lines as errors."},{"title":"Automated JSONL sanitization in a data pipeline","prompt":"As part of my ETL workflow, run this JSONL text through normalization and validation, ignore blank lines, and return the cleaned records along with the valid and invalid counts so I can decide whether to proceed."}],"resultDescription":"Returns a result object containing: the normalized JSONL string, an array of parsed record objects, a count of valid records, a count of invalid records, a count of total records, and an array of rejected lines with details. Also includes a receipt with payment, execution, and service metadata.","failureModes":["Empty or missing text field returns an error","Text exceeding 65,536 characters is rejected","Invalid blankLinePolicy enum value causes a validation error","Malformed request body returns a 400-level error","Payment failure (insufficient USDC balance) returns a 402 error"],"whenToPreferThis":"Choose this endpoint when you need to validate and normalize JSONL/newline-delimited JSON programmatically within an agent workflow, especially when you need both a cleaned output and granular reporting on which lines passed or failed. It is particularly valuable in ETL pipelines, data ingestion gates, or debugging sessions where you need to understand the exact shape of malformed records. At $0.01 USDC per call via x402, it is well-suited for on-demand agent use rather than bulk offline processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:54:12.610Z","isFirstParty":false}