fetch('https://html.affirm.duckdns.org/lsblk.json') .then((res:any) => res.text()) .then((text:any) => { const data = JSON.parse(text); console.log(data); }) .catch((e:any) => console.error(e));