Platform
Resources
Pricing
Sign in
Get started
spencer kelly
freelance javascripter
Workspace
Fork
Public
wtf_wikipedia
By
spencer kelly
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
page
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lang
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
doc
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
json
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wtf
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
style
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML