writeJsonSync
Writes a JavaScript object to a JSON file.
Import:
import { writeJsonSync } from 'obsidian-dev-utils/script-utils/json';Signature:
function writeJsonSync(path: string, data: unknown): voidParameters:
| Parameter | Type | Description |
|---|---|---|
path | string | The path to the JSON file. |
data | unknown | The data to write to the JSON file. |
Returns: void