{"id":17423,"date":"2022-10-24T15:19:07","date_gmt":"2022-10-24T09:49:07","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/"},"modified":"2022-10-24T15:19:07","modified_gmt":"2022-10-24T09:49:07","slug":"solved-get-value-from-json-in-python-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/","title":{"rendered":"[Solved] Get value from JSON in Python [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-60294571\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"60294571\" data-parentid=\"60294528\" data-score=\"1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>you can do that as follows:<\/p>\n<pre><code>d = {\"coord\": {\"lon\": -71.06, \"lat\": 42.36}, \"weather\": [{\"id\": 500, \"main\": \"Rain\", \"description\": \"light rain\", \"icon\": \"10n\"}], \"base\": \"stations\", \"main\": {\"temp\": 1.69, \"feels_like\": -1.22, \"temp_min\": 0, \"temp_max\": 3.33, \"pressure\": 1013, \"humidity\": 94}, \"visibility\": 16093, \"wind\": {\n    \"speed\": 1.5, \"deg\": 230}, \"rain\": {\"1h\": 0.25}, \"clouds\": {\"all\": 90}, \"dt\": 1582094044, \"sys\": {\"type\": 1, \"id\": 3413, \"country\": \"US\", \"sunrise\": 1582112159, \"sunset\": 1582150834}, \"timezone\": -18000, \"id\": 4930956, \"name\": \"Boston\", \"cod\": 200}\nfeels = d[\"main\"][\"feels_like\"]\n<\/code><\/pre>\n<p>Hope it helps you!<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Get value from JSON in Python [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] you can do that as follows: d = {&#8220;coord&#8221;: {&#8220;lon&#8221;: -71.06, &#8220;lat&#8221;: 42.36}, &#8220;weather&#8221;: [{&#8220;id&#8221;: 500, &#8220;main&#8221;: &#8220;Rain&#8221;, &#8220;description&#8221;: &#8220;light rain&#8221;, &#8220;icon&#8221;: &#8220;10n&#8221;}], &#8220;base&#8221;: &#8220;stations&#8221;, &#8220;main&#8221;: {&#8220;temp&#8221;: 1.69, &#8220;feels_like&#8221;: -1.22, &#8220;temp_min&#8221;: 0, &#8220;temp_max&#8221;: 3.33, &#8220;pressure&#8221;: 1013, &#8220;humidity&#8221;: 94}, &#8220;visibility&#8221;: 16093, &#8220;wind&#8221;: { &#8220;speed&#8221;: 1.5, &#8220;deg&#8221;: 230}, &#8220;rain&#8221;: {&#8220;1h&#8221;: 0.25}, &#8220;clouds&#8221;: {&#8220;all&#8221;: 90}, &#8220;dt&#8221;: 1582094044, &#8230; <a title=\"[Solved] Get value from JSON in Python [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/\" aria-label=\"More on [Solved] Get value from JSON in Python [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[1315,388,356,349],"class_list":["post-17423","post","type-post","status-publish","format-standard","hentry","category-solved","tag-api","tag-jquery","tag-json","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Get value from JSON in Python [closed] - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Get value from JSON in Python [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] you can do that as follows: d = {&quot;coord&quot;: {&quot;lon&quot;: -71.06, &quot;lat&quot;: 42.36}, &quot;weather&quot;: [{&quot;id&quot;: 500, &quot;main&quot;: &quot;Rain&quot;, &quot;description&quot;: &quot;light rain&quot;, &quot;icon&quot;: &quot;10n&quot;}], &quot;base&quot;: &quot;stations&quot;, &quot;main&quot;: {&quot;temp&quot;: 1.69, &quot;feels_like&quot;: -1.22, &quot;temp_min&quot;: 0, &quot;temp_max&quot;: 3.33, &quot;pressure&quot;: 1013, &quot;humidity&quot;: 94}, &quot;visibility&quot;: 16093, &quot;wind&quot;: { &quot;speed&quot;: 1.5, &quot;deg&quot;: 230}, &quot;rain&quot;: {&quot;1h&quot;: 0.25}, &quot;clouds&quot;: {&quot;all&quot;: 90}, &quot;dt&quot;: 1582094044, ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-24T09:49:07+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Get value from JSON in Python [closed]\",\"datePublished\":\"2022-10-24T09:49:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/\"},\"wordCount\":28,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"keywords\":[\"api\",\"jquery\",\"json\",\"python\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/\",\"name\":\"[Solved] Get value from JSON in Python [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"datePublished\":\"2022-10-24T09:49:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-get-value-from-json-in-python-closed\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Get value from JSON in Python [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Get value from JSON in Python [closed] - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Get value from JSON in Python [closed] - JassWeb","og_description":"[ad_1] you can do that as follows: d = {\"coord\": {\"lon\": -71.06, \"lat\": 42.36}, \"weather\": [{\"id\": 500, \"main\": \"Rain\", \"description\": \"light rain\", \"icon\": \"10n\"}], \"base\": \"stations\", \"main\": {\"temp\": 1.69, \"feels_like\": -1.22, \"temp_min\": 0, \"temp_max\": 3.33, \"pressure\": 1013, \"humidity\": 94}, \"visibility\": 16093, \"wind\": { \"speed\": 1.5, \"deg\": 230}, \"rain\": {\"1h\": 0.25}, \"clouds\": {\"all\": 90}, \"dt\": 1582094044, ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/","og_site_name":"JassWeb","article_published_time":"2022-10-24T09:49:07+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Get value from JSON in Python [closed]","datePublished":"2022-10-24T09:49:07+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/"},"wordCount":28,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["api","jquery","json","python"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/","name":"[Solved] Get value from JSON in Python [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-10-24T09:49:07+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-get-value-from-json-in-python-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Get value from JSON in Python [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777008400","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/17423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=17423"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/17423\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=17423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=17423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=17423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}