CS

JSON

Create JSON object

a={}
a.b=55
JSON.stringify(a)
aText = JSON.stringify(a)
aObj  = JSON.parse(aText)
console.log(a, aText, aObj)

Result (as): “{“b”:55}”

Example of JSON with a TED conference

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=""