Import Assertions

#static import

import json from "./package.json" assert {type: "json"}
//Import all objects in the json file

#Dynamic Import

const json =
     await import("./package.json", { assert: { type: "json" } })
Comments