Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/fs/mod.ts>readJson

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function readJson
import { readJson } from "https://deno.land/std@0.51.0/fs/mod.ts";

Reads a JSON file and then parses it into an object

Parameters

filePath: string

Returns

Promise<unknown>