2024-01-01 21:11:32 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-03-18 12:36:00 +00:00
|
|
|
// This module is browser compatible.
|
|
|
|
|
2024-02-27 19:28:34 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* This module is browser compatible.
|
|
|
|
*
|
|
|
|
* @example
|
|
|
|
* ```ts Parsing JSONC
|
|
|
|
* import { parse } from "https://deno.land/std@$STD_VERSION/jsonc/mod.ts";
|
|
|
|
*
|
|
|
|
* parse('{"foo": "bar", } // comment'); // { foo: "bar" }
|
|
|
|
* parse('{"foo": "bar", } /* comment *\/'); // { foo: "bar" }
|
|
|
|
* parse('{"foo": "bar" } // comment', {
|
|
|
|
* allowTrailingComma: false,
|
|
|
|
* }); // { foo: "bar" }
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* @module
|
|
|
|
*/
|
2023-03-13 05:58:26 +00:00
|
|
|
export * from "./parse.ts";
|