lwitzani/homebridgeStatusWidget

"Pretty-printing" Stored configuration into JSON (overwritePersistedConfig = true)

Closed this issue · 3 comments

Could it be possible to add a 3rd argument to JSON.stringify and pretty-print the configuration, for better readability and editing ?
Eg.:

...
function persistObject(fm, object, path) {
    let raw = JSON.stringify(object, null, 2);
    fm.writeString(path, raw);
}
...

Refer to official doc

I Can look into it

i added it :)

Top 👌