Need read some data from JSON
<p>I need to make a get (id, name, fraction id) for each deputy in this json </p>

<pre><code>{
    "id": "75785",
    "title": "(Ð·Ð° Ð¾ÑÐ½Ð¾Ð²Ñ)",
    "asozdUrl": null,
    "datetime": "2011-12-21T12:20:26+0400",
    "votes": [
        {
            "deputy": {
                "id": "99111772",
                "name": "ÐÐ±Ð°Ð»Ð°ÐºÐ¾Ð² ÐÐ»ÐµÐºÑÐ°Ð½Ð´Ñ ÐÐ¸ÐºÐ¾Ð»Ð°ÐµÐ²Ð¸Ñ",
                "faction": {
                    "id": "72100004",
                    "title": "ÐÐÐ Ð¤"
                }
            },
            "result": "accept"
        },
        {
            "deputy": {
                "id": "99100491",
                "name": "ÐÐ±Ð´ÑÐ»Ð°ÑÐ¸Ð¿Ð¾Ð² Ð Ð°Ð¼Ð°Ð·Ð°Ð½ ÐÐ°Ð´Ð¶Ð¸Ð¼ÑÑÐ°Ð´Ð¾Ð²Ð¸Ñ",
                "faction": {
                    "id": "72100024",
                    "title": "ÐÐ "
                }
            },
            "result": "none"
        }
    .......,`   etc
</code></pre>

<hr>

<p>My code is looks like that: </p>

<pre><code>urlData = "https://raw.githubusercontent.com/data-dumaGovRu/vote/master/poll/2011-12-21/75785.json"
response = urllib.request.urlopen(urlData)
content = response.read()
data = json.loads(content.decode("utf8"))
for i in data:    
    #print(data["name"])
</code></pre>

<p>`
And i dont know what to do with that #print line, how I should write it?</p>

<p>You can access the list containing the deputies with <code>data['votes']</code>. Iterating through the list, you can access the keys you're interested in as you would with dict key lookups. Nested dicts imply you have to walk through the keys starting from the root to your point of interest: </p>

<pre><code>for d in data['votes']:
    print(d['deputy']['id'], d['deputy']['name'], d['deputy']['faction']['id'])
</code></pre>

python json