Write JSON file
Save a value to a JSON file (written in one go, so a reader never sees half a file).
Command in the JSON toolkit · id ooa.json/write_file · 4 inputs (2 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | Target path. | |
| Value | Any | Yes | Value to write. | |
| Pretty | Boolean | No | false | Write indented JSON for reading. |
| Encoding | String | No | utf-8 | Text encoding, e.g. utf-8, utf-8-bom, utf-16. |