How can I pretty-print JSON using node.js?

前端 未结 6 1065
心在旅途
心在旅途 2020-11-28 00:22

This seems like a solved problem but I am unable to find a solution for it.

Basically, I read a JSON file, change a key, and write back the new JSON to the same file

6条回答
提交回复
热议问题