data = { "name": "testpage", "title": "The ENCODE Project", "status": "released", "uuid": "27f9abd9-0081-4ade-8c82-95ec12b3a7dd", "layout": { "rows": [ { "cols": [ {"blocks": ["#block1"]} ] }, { "cols": [ {"blocks": ["#block2"]}, {"blocks": ["#block3"]}, {"blocks": ["#block4"]} ] } ], "blocks": [ { "@id": "#block1", "@type": "richtextblock", "body": "<div class=\"project-info site-title\">\n <h1>ENCODE: The Encyclopedia of DNA Elements</h1>\n</div>\n<div id=\"info-box\" class=\"project-info text-panel\">\n <p>The ENCODE project dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>\n</div>" }, { "@id": "#block2", "@type": "richtextblock", "body": "<h2>Transcriptome</h2>\n<p>Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.</p>" }, { "@id": "#block3", "@type": "richtextblock", "body": "<h2>Regulation</h2>\n<p>Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.</p>" }, { "@id": "#block4", "@type": "teaserblock", "image": "/images/8a91ae78-731a-4a92-ae7c-273214be408a/", "body": "<h2>Chromatin Structure</h2>", "href": "/about/chromatin-structure" } ] } print(data['layout']['blocks'][0])
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question