Code i used in fetching the data
url = 'https://api.some-random-url.com/users/amarlearning'
serialized_data = urllib2.urlopen(url).read().decode("utf-8")
data = json.loads(serialized_data)
Returned JSON
[
{
id: "4859421681",
type: "IssueCommentEvent"
},
{
id: "4859421681",
type: "IssueCommentEvent"
},
{
id: "4859421681",
type: "IssueCommentEvent"
}
]
Now In django Template i am doing this
{{ data[0]['type'] }}
Getting Template error, while i was accessing Json data in Django template!