-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Stringify indentation not working #10995
Comments
If you try this simple evaluation in REPL, you will get a 'debug` output. Try this: console.log(JSON.stringify({name: 'test'}, null, 4)); |
It works for me:
Is that what you're seeing @adi518 ? |
Here also works:
Platform: macOS. |
Nope, still doesn't work whatsoever. It used to work just fine some months ago. |
@adi518 Could you please describe in detail how do you launch the code and what output you get literally? |
@adi518 can you try it in the REPL? (Launch node without a file) |
Ok, found the culprit. I had a |
It appears this doesn't work anymore:
JSON.stringify({name: 'test'}, null, 4)
Output stays minified.
The text was updated successfully, but these errors were encountered: