4 ms·
I've been frustrated with JSON when mixing text data and content due to the default prettier/JSON.stringify/browser format, which makes it very vertical, specia
by franciscop 4y ago
I've been frustrated with JSON when mixing text data and content due to the default prettier/JSON.stringify/browser format, which makes it very vertical, specially when mixing in 2d/3d data/arrays. I found a simple solution was to use json-beautify[1] before printing/saving data in files. Suddenly my 2000+ lines of scroll-fast JSON became 200-300 lines of highly legible data.
[1] https://www.npmjs.com/package/json-beautify https://www.npmjs.com/package/json-beautify