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

std/fs/write_json.ts>writeJson

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function writeJson
import { writeJson } from "https://deno.land/std@0.38.0/fs/write_json.ts";

Parameters

filePath: string
object: any
optional
options: WriteJsonOptions = [UNSUPPORTED]

Returns

Promise<void>