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

x/deno/std/fs/read_json.ts>readJson

A modern runtime for JavaScript and TypeScript.
Go to Latest
function readJson
import { readJson } from "https://deno.land/x/deno@v0.28.0/std/fs/read_json.ts";

Reads a JSON file and then parses it into an object

Parameters

filePath: string

Returns

Promise<unknown>