How do you log content of a JSON object in Node.js?
function prettyJSON(obj) { console.log(JSON.stringify(obj, null, 2));}// obj -> value to convert to a JSON string// null -> (do nothing)// 2 -> 2 spaces per indent level
function prettyJSON(obj) { console.log(JSON.stringify(obj, null, 2));}// obj -> value to convert to a JSON string// null -> (do nothing)// 2 -> 2 spaces per indent level