writeJSONFile

external fun writeJSONFile(filename: String, data: dynamic): Promise<Unit>

Write JSON to a file, using tab indentation and a trailing newline.