How to fetch json in JavaScript

JSON
Last updated Dec 18, 2017
fetch("https://codetogo.io/api/users.json")
  .then(response => response.json())
  .then(data => {
    console.log(data);
  })
  .catch(console.error);
[{
    id: 1,
    name: "Jad"
}, {
    id: 2,
    name: "Nicole"
}]