import { jsonLoad } from "https://deno.land/x/simple_utility@v1.4.4/src/json.deno.ts";
Read JSON file and convert to object. If JSON file does not exist create new file with default value. Argument default value also act as type definition.
Examples
Example 1
Example 1
import dresource from "./resource.json" assert {type: "json"};
const resource = await jsonLoad("./resource.json", dresource);
Parameters
def: T