Good time of day.
On .txt file contains the Json data
For example, I want to display only artist
not necessary to me.
you want to display on the page in div and refresh say every 5 seconds using setInterval
js code (helped yesterday)
var json = 'https://www.site.com/json.txt'
let _json = JSON.parse(json)
//somewhere here I need to make a choice, but that only did not try, does not work.
let artist = document.getElementById('artist');
let title= document.getElementById('title');
artist.innerHTML = _json.artist;
title.innerHTML = _json.title;
I would be very grateful, thanks in advance.