jsonc-parser is a Node module that scans and parses JSON that can include JavaScript-style comments (JSONC), while also working with standard JSON. It provides a fault-tolerant parser, token offsets, and helpers to visit values, build a node tree with locations, and compute/apply edits for formatting or modifying JSON documents.
Project status
- Actively maintained, with very recent activity on GitHub (last upstream push on 2026-08-12, plus updates in 2026).
- Update cadence appears ongoing but not continuous, with notable updates released on 2026-03-10 (v4.0.0-next.1) and 2026-06-16 (v4.0.0-next.2), suggesting a roughly 3 month rhythm for recent work.
AI summary generated
Recent updates
v4.0.0-next.2
Release v4.0.0-next.2 primarily fixes bugs in the JSON edit/remove path, specifically handling removal of the last array element correctly. It also updates several development dependencies via npm audit fixes, plus bumps the package version.
Securityv4.0.0-next.1
v4.0.0-next.1 primarily upgrades a few dependencies (brace-expansion, picomatch, flatted), and includes fixes for modify() when removing the last element from an array and when removing array elements produces invalid JSON. The release notes do not mention any packaging or API shape changes.
Securityv3.3.1
Release v3.3.1 primarily updates the package version to 3.3.1. The only functional change in the diff is that the package.json "exports" map was removed.
Breakingv3.3.0
v3.3.0 improves JSON parsing and formatting with performance-focused changes and multiple bug fixes. It also updates the public formatting and visitor APIs (new formatting option(s) and new visitor callback parameters), which may require small TypeScript updates when upgrading.
BreakingFeatures