Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesTarget path.
ValueAnyYesValue to write.
PrettyBooleanNofalseWrite indented JSON for reading.
EncodingStringNoutf-8Text encoding, e.g. utf-8, utf-8-bom, utf-16.