[Node.js] Object를 JSON.stringify() 깔끔하게 보려면?

|

보통은 JSON.stringfiy(result); 와 같이 자주 사용하는데, object의 길이가 엄청나게 길 때, 디버깅하기가 힘들다. 그럴 경우 다음과 같이 하면 정~말 깔끔하게 볼 수 있다.

JSON.stringify(result, null, 4);


'Computer > Node.js' 카테고리의 다른 글

JavaScript Libraries.  (0) 2018.07.30
[JavaScript] Object의 데이터를 JSON형태로 보기.  (0) 2018.07.30
And