Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/denjucks/src/deps/path/std/fs/mod.ts>readJson

Deno templating engine
Latest
function readJson
import { readJson } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/fs/mod.ts";

Reads a JSON file and then parses it into an object

Parameters

filePath: string

Returns

Promise<unknown>