html to json

HTML
fetch('https://www.example.com/index.html')
  .then(res => res.text())
  .then(html => console.log(html));
Source

Also in HTML: