Skip to main content
Module

std/encoding/jsonc.ts>parse

Deno standard library
Go to Latest
function parse
import { parse } from "https://deno.land/std@0.161.0/encoding/jsonc.ts";

Converts a JSON with Comments (JSONC) string into an object. If a syntax error is found, throw a SyntaxError.

Parameters

text: string

A valid JSONC string.

optional
unnamed 1: ParseOptions = [UNSUPPORTED]