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

x/simple_utility/mod.ts>jsonRead

Simplify processing for Deno.
Latest
function jsonRead
import { jsonRead } from "https://deno.land/x/simple_utility@v2.3.2/mod.ts";

Read JSON file and convert to object.

Examples

Example 1

const json = await jsonRead("./data.json");

Parameters

path: string

Returns

Promise<T>