Other examples:
In JSON page
a={}
a.b=55
JSON.stringify(a)
as=JSON.stringify(a)
JSON.parse(as)
Result (as): “{“b”:55}”
var t = document.body.innerText
t2 = eval('(' + t + ')')
t2.captions
for (x in t2.captions) { document.write(t2.captions[x].startTime + ":" + t2.captions[x].content ); document.write('<br>')}
document.write("<table border=1>");for (x in t2.captions) { document.write("<tr><td>" + t2.captions[x].startTime + "</td><td>" + t2.captions[x].content + "</td></tr>")}
Clear screen:
document.body.innerHTML=""
API examples: