If you’re debugging in Node.js and you want a large object or array to be more readable when you log it, you can format it like this:
JSON.stringify(yourObject, null, 2)
![code](https://simonplend.com/wp-content/uploads/2021/03/format-object-javascript.png)
![output](https://simonplend.com/wp-content/uploads/2021/03/format-object-output.png)
If you’re debugging in Node.js and you want a large object or array to be more readable when you log it, you can format it like this:
JSON.stringify(yourObject, null, 2)