Skip to main content
Module

x/enzastdlib/vendor/@CesiumLabs-json5.ts>parse

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
function parse
import { parse } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@CesiumLabs-json5.ts";

Converts a JSON5 string into an object.

Type Parameters

optional
T = any

Type of return value.

Parameters

text: string

A valid JSON string.

optional
reviver: ((
this: any,
key: string,
value: any,
) => any | null)

A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.