// Personal website of Chris Smith

JavaScript » Load JSON

To load JSON from another file/endpoint, just use the fetch API:

fetch('data.json')
  .then(response => response.json())
  .then(json => {
  })