Public
Edited
Dec 28, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
json = doc.json()
Insert cell
Insert cell
Insert cell
{
//get json for one section only
let section = doc.section(0).json()

// get just the infobox
let infobox = doc.infobox(0)
if(infobox){
infobox = infobox.json()
}
//get the link json
let links = doc.links().map(l => l.json())
//get the image json
let images= doc.images().map(img => img.json())
return {section, infobox, links, images}
}
Insert cell
Insert cell
doc.json({paragraphs:true, references:false, lists:false, templates:false, categories:false})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more