{"library":"json-alexander","type":"library","category":null,"description":"json-alexander is a utility package designed to parse JSON strings that may be malformed or contain JavaScript object literal syntax, providing a more \"forgiving\" parsing experience than `JSON.parse`. It aims to fix common issues like unquoted keys, single quotes, and unbalanced structures. The current stable version is 0.1.13, indicating it's still in an early development phase. Release cadence is infrequent, typical for a niche utility. Its key differentiators include its ability to parse non-standard JSON and JavaScript object syntax, making it suitable for scenarios like CLI argument parsing where input might not be strictly valid JSON. However, its \"forgiving\" nature, particularly the `parseJSON` function, uses regular expressions which introduce a potential for ReDoS attacks, contrasting with the standard `JSON.parse` or more strict parsers. For security-sensitive applications, the `safeParse` function is provided, which foregoes the auto-correction in favor of returning `null` for malformed input, thus mitigating the ReDoS risk.","language":"javascript","status":"active","version":"0.1.13","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install json-alexander","imports":["import { parseJSON } from 'json-alexander'","import { safeParse } from 'json-alexander'"]},{"cmd":"yarn add json-alexander","imports":[]},{"cmd":"pnpm add json-alexander","imports":[]}],"homepage":null,"github":"https://github.com/DavidWells/json-alexander","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/json-alexander","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/json-alexander/compatibility"}}