{"library":"lezer-json5","type":"library","category":null,"description":"lezer-json5 is a Lezer grammar designed for parsing JSON5 (JavaScript Object Notation, Fifth Edition) syntax. JSON5 extends standard JSON by adding features like comments, unquoted object keys, trailing commas, and single-quoted strings, making configuration files more human-readable. This package, currently at version 2.0.2, integrates seamlessly with CodeMirror 6, providing robust syntax highlighting and language-aware editing capabilities for JSON5 documents. While the package was last published three years ago, it remains a stable and functional solution for JSON5 parsing within the Lezer/CodeMirror ecosystem, leveraging principles from the official Lezer JavaScript grammar. Its slow release cadence suggests a mature grammar that is unlikely to require frequent updates unless core Lezer APIs or the JSON5 specification undergo significant changes. It differentiates itself by offering incremental parsing specific to the JSON5 specification, which is crucial for performance in large editor instances.","language":"javascript","status":"maintenance","version":"2.0.2","tags":["javascript","lezer","codemirror","json5","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install lezer-json5","imports":["import { json5 } from 'lezer-json5';","import { json5 } from 'lezer-json5';","import { LanguageSupport } from '@codemirror/language';"]},{"cmd":"yarn add lezer-json5","imports":[]},{"cmd":"pnpm add lezer-json5","imports":[]}],"homepage":null,"github":"https://github.com/dimfeld/lezer-json5","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/lezer-json5","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/lezer-json5/compatibility"}}