title: Logging a JSON object in firebase console
body: <p>Does anyone know how to log JSON data in a readable manner to the firebase logs? When using:</p>
  
  <p><code>console.log(req.body)</code></p>
  
  <p>or </p>
  
  <p><code>console.log(`${req.body.event}: ${JSON.stringify(req.body, null, 2)}`);</code> </p>
  
  <p>it prints it as seen in the picture below on multiple lines. </p>
  
  <p>My firebase cloud functions run on Node 10</p>
  
  <p><a href="https://i.stack.imgur.com/LBQq4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LBQq4.png" alt="enter image description here"></a></p>