(text: string)
| 24 | |
| 25 | /** Parse JSONC into an object. Throws on malformed JSONC instead of returning a destructive fallback. */ |
| 26 | export function parseJsonc(text: string): Record<string, unknown> { |
| 27 | return parseRoot(text); |
| 28 | } |
| 29 | |
| 30 | function stringifyJsonc(root: Record<string, unknown>): string { |
| 31 | const rendered = stringify(root, null, 2); |
no test coverage detected