// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
 * 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.
 *
 * ```ts
 * import { parse } from "@std/jsonc";
 * import { assertEquals } from "@std/assert/assert-equals";
 *
 * assertEquals(parse('{"foo": "bar", } // comment'), { foo: "bar" });
 *
 * assertEquals(parse('{"foo": "bar", } /* comment *\/'), { foo: "bar" });
 *
 * assertEquals(
 *   parse('{"foo": "bar" } // comment', { allowTrailingComma: false }),
 *   { foo: "bar" }
 * );
 * ```
 *
 * @module
 */
export * from "./parse.ts";

// denoCacheMetadata={"headers":{"date":"Tue, 28 Jul 2026 12:31:15 GMT","x-jsr-backend":"modules","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","content-length":"728","x-robots-tag":"noindex","access-control-expose-headers":"*","server":"cloudflare","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=%2FZxR191oenK%2B5iVHEOF7%2FLsSKhIMQn55ZGzs%2BWHa9WsqJ4n9O65AlTXy3lNJKawlmWXV%2B%2BkNDJC%2FcCwOajzDdX20AvtlwWZGMBU%2F%2FTWrvtNrbBRMJ4duxI8%3D\"}]}","etag":"\"50384f251ebe42887fe50bb174441865\"","x-content-type-options":"nosniff","vary":"Origin","cross-origin-resource-policy":"cross-origin","access-control-allow-origin":"*","set-cookie":"__cf_bm=iYolyEGh78zLUG5vFSXIVMmCy3rYQRW.rDngNUACORc-1785241874.932932-1.0.1.1-xaDk1ztQS202f08Nsw7wfmsopgCi4jkVZ_cKTGZh3SD60zI1vX_FSw9wLJDDjVTfXJ0.iLM.jyZEQiQlSQwQx84LvI7QKBNlgvKhQ6VgY9E4s1YjpVdLyV5HoQ6Wg3.u; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","cf-ray":"a223e6564e8a7db6-LAX","content-type":"text/typescript","alt-svc":"h3=\":443\"; ma=86400","cache-control":"public, max-age=31536000, immutable"},"url":"https://jsr.io/@std/jsonc/0.224.3/mod.ts","time":1785241875}