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

x/simple_utility/src/deno/json.ts>jsonRead

Simplify processing for Deno.
Go to Latest
function jsonRead
import { jsonRead } from "https://deno.land/x/simple_utility@v2.0.9/src/deno/json.ts";

Read JSON file and convert to object.

Examples

Example 1

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

Parameters

path: string

Returns

Promise<T>