34import type { ParseError } from
'jsonc-parser';
68 const cjs = require(
'jsonc-parser');
72 const esm = await
import(
'jsonc-parser');
123 const errors: ParseError[] = [];
124 const result = parse(jsonContent, errors);
125 if (errors.length > 0) {
126 throw new Error(`JSONC parse errors: ${JSON.stringify(errors)}`);
function async parseJsonFile(jsonContent:string)
Parses JSONC content with comprehensive error handling and validation.
function async loadJsoncParser()
Loads the jsonc-parser module with automatic fallback between module systems.