--- title: "@std/jsonc" description: "Parsing and serializing of JSONC files" jsr: jsr:@std/jsonc pkg: jsonc version: 1.0.2 generated: true stability: stable --- ## Overview

Provides tools for working with JSONC (JSON with comments).

Currently, this module only provides a means of parsing JSONC. JSONC serialization is not yet supported.

```js import { parse } from "@std/jsonc"; import { assertEquals } from "@std/assert"; assertEquals(parse('{"foo": "bar", } // comment'), { foo: "bar" }); assertEquals(parse('{"foo": "bar", } /* comment *\/'), { foo: "bar" }); ``` ### Add to your project ```sh deno add jsr:@std/jsonc ``` See all symbols in @std/jsonc on