Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdParsing and serializing of JSONC files
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
100%
Published
7 months ago (1.0.2)
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.
import { parse } from "@std/jsonc"; import { assertEquals } from "@std/assert"; assertEquals(parse('{"foo": "bar", } // comment'), { foo: "bar" }); assertEquals(parse('{"foo": "bar", } /* comment *\/'), { foo: "bar" });
Built and signed on
GitHub Actions
Add Package
deno add jsr:@std/jsonc
Import symbol
import * as jsonc from "@std/jsonc";
Import directly with a jsr specifier
import * as jsonc from "jsr:@std/jsonc";
Add Package
pnpm i jsr:@std/jsonc
pnpm dlx jsr add @std/jsonc
Import symbol
import * as jsonc from "@std/jsonc";
Add Package
yarn add jsr:@std/jsonc
yarn dlx jsr add @std/jsonc
Import symbol
import * as jsonc from "@std/jsonc";
Add Package
vlt install jsr:@std/jsonc
Import symbol
import * as jsonc from "@std/jsonc";
Add Package
npx jsr add @std/jsonc
Import symbol
import * as jsonc from "@std/jsonc";
Add Package
bunx jsr add @std/jsonc
Import symbol
import * as jsonc from "@std/jsonc";