JSON as Table | Console


How to view JSON data as table?

It’s a lot easier to interpret data if it’s displayed in a tabular form. JSON data can be printed to the browser console as tabular data using the console.table method.

Let’s see that with the help of an example. https://jsonplaceholder.typicode.com/users returns a certain JSON data. Let’s print the data to the console using console.table.

fetch('https://jsonplaceholder.typicode.com/users')
  .then(response => response.json())
  .then(json => console.table(json))

enter image description here