var json=[ ]; //json.filter(x => x.category=="PLAIN_AUDIO").forEach((u)=>{console.log(u.attachment.url)}); //console.log(json.filter(x => x.category=="PLAIN_AUDIO").map(u=>u.attachment.url)); json.filter(x => x.category=="PLAIN_AUDIO").forEach((u,i)=>{document.writeln('curl -o '+i.toString().padStart(3,'0')+'.mp3 '+u.attachment.url+'<br />')});