{"id":"2589509f-26cf-4ca1-a404-e525beff903f","shortId":"XxbZ5D","kind":"skill","title":"Repair malformed JSON before parsing downstream automations with jsonrepair","tagline":"Use jsonrepair when an agent receives JSON-like output that is almost valid but still breaks parsers, such as trailing commas, missing quotes, or concatenated fragments. The agent’s role is to normalize the payload before validation or routing, not to replace real schema design.","description":"# Repair malformed JSON before parsing downstream automations with jsonrepair\n\nUse jsonrepair when an agent receives JSON-like output that is almost valid but still breaks parsers, such as trailing commas, missing quotes, or concatenated fragments. The agent’s role is to normalize the payload before validation or routing, not to replace real schema design.\n\n## Prerequisites\n\nNode.js or CLI, JSON-like input data\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- $ npm install jsonrepair\n- $ npm install -g jsonrepair\n- npm install | Install the dependencies once\n- npm run build | Build the library (ESM, CommonJs, and UMD output in the folder lib)\n\nRequirements and caveats from upstream:\n- Replace Python constants None, True, and False with null, true, and false\n- Use the streaming API in Node.js:\n- import { createReadStream, createWriteStream } from 'node:fs'\n\nBasic usage or getting-started notes:\n- Turn newline delimited JSON into a valid JSON array, for example:\n- Note that in the lib folder, there are builds for ESM, UMD, and CommonJs.\n- ## Use\n\n- Source: https://github.com/josdejong/jsonrepair\n- Extracted from upstream docs: https://raw.githubusercontent.com/josdejong/jsonrepair/HEAD/README.md\n\n## Documentation\n\n- https://github.com/josdejong/jsonrepair\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair/)","tags":["repair","malformed","json","before","parsing","downstream","automations","jsonrepair","skills","agentskillexchange","agent-skills","ai-agents"],"capabilities":["skill","source-agentskillexchange","skill-repair-malformed-json-before-parsing-downstream-automations-jsonrepair","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,462 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:12:05.138Z","embedding":null,"createdAt":"2026-05-18T13:18:50.462Z","updatedAt":"2026-05-18T19:12:05.138Z","lastSeenAt":"2026-05-18T19:12:05.138Z","tsv":"'/josdejong/jsonrepair':225,236 '/josdejong/jsonrepair/head/readme.md':232 '/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair/)':243 'agent':14,38,69,93,238 'agentskillexchange.com':242 'agentskillexchange.com/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair/)':241 'almost':22,77 'api':180 'array':204 'autom':7,62 'basic':189 'break':26,81 'build':147,148,215 'caveat':162 'cli':114 'comma':31,86 'commonj':152,220 'concaten':35,90 'constant':167 'createreadstream':184 'createwritestream':185 'data':119 'delimit':198 'depend':143 'design':55,110 'doc':229 'document':233 'downstream':6,61 'environ':131 'esm':151,217 'exampl':206 'exchang':240 'extract':226 'fals':171,176 'folder':158,212 'fragment':36,91 'fs':188 'g':137 'get':193 'getting-start':192 'github.com':224,235 'github.com/josdejong/jsonrepair':223,234 'import':183 'input':118 'instal':120,124,133,136,140,141 'json':3,17,58,72,116,199,203 'json-lik':16,71,115 'jsonrepair':9,11,64,66,134,138 'lib':159,211 'librari':150 'like':18,73,117 'malform':2,57 'match':129 'miss':32,87 'newlin':197 'node':187 'node.js':112,182 'none':168 'normal':43,98 'note':195,207 'npm':132,135,139,145 'null':173 'output':19,74,155 'pars':5,60 'parser':27,82 'path':127 'payload':45,100 'prerequisit':111 'python':166 'quot':33,88 'raw.githubusercontent.com':231 'raw.githubusercontent.com/josdejong/jsonrepair/head/readme.md':230 'real':53,108 'receiv':15,70 'repair':1,56 'replac':52,107,165 'requir':160 'role':40,95 'rout':49,104 'run':146 'schema':54,109 'setup':126 'skill':239 'skill-repair-malformed-json-before-parsing-downstream-automations-jsonrepair' 'sourc':222,237 'source-agentskillexchange' 'start':194 'still':25,80 'stream':179 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'trail':30,85 'true':169,174 'turn':196 'umd':154,218 'upstream':123,164,228 'usag':190 'use':10,65,121,177,221 'valid':23,47,78,102,202","prices":[{"id":"e5aefad1-9e20-416a-bbda-95eb700c1cda","listingId":"2589509f-26cf-4ca1-a404-e525beff903f","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:18:50.462Z"}],"sources":[{"listingId":"2589509f-26cf-4ca1-a404-e525beff903f","source":"github","sourceId":"agentskillexchange/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair","isPrimary":false,"firstSeenAt":"2026-05-18T13:18:50.462Z","lastSeenAt":"2026-05-18T19:12:05.138Z"}],"details":{"listingId":"2589509f-26cf-4ca1-a404-e525beff903f","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"repair-malformed-json-before-parsing-downstream-automations-jsonrepair","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"dfe3ab75d1806650110f799113b54ef089ced36b","skill_md_path":"skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Repair malformed JSON before parsing downstream automations with jsonrepair","description":"Use jsonrepair when an agent receives JSON-like output that is almost valid but still breaks parsers, such as trailing commas, missing quotes, or concatenated fragments. The agent’s role is to normalize the payload before validation or routing, not to replace real schema design."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/repair-malformed-json-before-parsing-downstream-automations-jsonrepair"},"updatedAt":"2026-05-18T19:12:05.138Z"}}