A Json Lint library (v0.0.3, last updated in 2012) that parses and partially corrects dirty JSON without crashing. It can fix common errors like single quotes, hex numbers, and function calls, and returns corrected JSON alongside error details. Unlike most JSON linters, it continues parsing after errors and substitutes invalid constructs with null. Written in CoffeeScript, runs on Node >=0.4.0 and browsers. Low release cadence and minimal maintenance since 2013.
npm install durable-json-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates linting dirty JSON with single quotes, function call, hex number and viewing corrected output and errors.
Consider using a maintained JSON linter like jsonlint or ajv.
Wrap call in try-catch to handle crashes; check result.json for null.
Always inspect errors array to understand substitutions.
Use npm 1.x or precompile; on modern Node, install coffee-script globally or use an alternative.
Do not present user-facing errors directly.
Install coffee-script: npm install coffee-script
Use import durableJsonLint from 'durable-json-lint' or const durableJsonLint = require('durable-json-lint')Use import syntax or a bundler like webpack.
No dependency data recorded yet.