All Questions
1
question
1
vote
1
answer
11k
views
NodeJS: writing JSON file not having line breaks when i open in Notepad. But is pretty view with other Editors
I am writing a JSON file using NodeJS, like this:
var path = "D:\\test.json"
var writeContent = {"Success" : "This is a sample"}
fs.writeFile(path, JSON.stringify(writeContent, null, 4), function (...