{"uid":"cap_nOBLayFOFSEk_mkDiZa4x","slug":"netintel-dev-json-normalizer-8b9849f5","name":"netintel.dev JSON Normalizer","description":"Conform messy or inconsistent JSON to a target schema using Claude Haiku — renames keys, coerces types (string→number, \"true\"→boolean, etc.), and fills missing fields with null, returning JSON that matches the exact shape the caller specified so agents can normalize data from varied sources into one consistent structure.","url":"https://netintel.dev/normalize/json","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["data","schema"],"properties":{"data":{"type":["string","object"],"description":"The messy JSON to normalize — a JSON string or an already-parsed object. Max 10000 words or 50KB."},"schema":{"type":"object","description":"A map of field name → type token. Supported tokens: string, number, boolean, date, string[], number[], object. Max 50 fields. Output keys are forced to exactly these field names."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"grade":{"type":"string","description":"Letter grade A-F."},"score":{"type":"number","description":"Quality score 0-100."},"cached":{"type":"boolean","description":"True if served from the in-memory cache."},"findings":{"type":"array","items":{"type":"string"},"description":"Informational findings (e.g. schema_mismatch_corrected, mostly_nulled)."},"normalized":{"type":"object","description":"The input conformed to the target schema: keys are exactly the schema field names, values coerced to the declared types, missing fields null."},"schema_match":{"type":"boolean","description":"True when the model's output keys were exactly the schema field names. False when code had to force-conform (strip extra / add missing) keys."},"fields_nulled":{"type":"number","description":"Number of null fields in the output."},"fields_in_schema":{"type":"number","description":"Number of fields in the target schema."},"fields_populated":{"type":"number","description":"Number of non-null fields in the output."}}}}}}},"responseSchema":{"type":"json","example":{"grade":"A","score":100,"cached":false,"findings":[],"normalized":{"age":42,"tags":["vip","beta"],"full_name":"Jane Doe","is_active":true,"signup_date":"2024-03-01"},"schema_match":true,"fields_nulled":0,"fields_in_schema":5,"fields_populated":5}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PWOADnYuDUZA6kN2WmGFo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes a JSON object against a schema, scores data quality, and returns cleaned/typed fields with a grade and match report","exampleAgentPrompt":"Can you normalize and quality-check this JSON record against my schema — it has fields like age, tags, full_name, is_active, and signup_date — and tell me the grade, score, which fields are populated, and whether it matches the schema?","exampleUseCases":null,"resultDescription":"Returns a grade (e.g. 'A'), numeric quality score (0-100), normalized field values with corrected types, a schema_match boolean, counts of fields in schema vs populated vs nulled, a cached flag, and a findings array listing any data quality issues detected.","failureModes":["Malformed or unparseable JSON input returns an error","Schema mismatch with no recoverable fields results in low score and findings","Missing required fields causes fields_nulled count to increase and grade to drop","Invalid schema definition may return a 400-level error","Payment failure via x402 blocks the call before processing"],"whenToPreferThis":"Use this endpoint when you need to both normalize JSON field types/values AND get a structured quality assessment with a letter grade and score in a single call. Prefer it over manual validation when you want human-readable findings, a completeness score, and cleaned output in one response. Especially useful for pipelines ingesting variable user-submitted data that must conform to a known schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:40:31.433Z","isFirstParty":false}