Skip to content

Instantly share code, notes, and snippets.

@aduartem
Last active August 29, 2016 03:35
Show Gist options
  • Select an option

  • Save aduartem/38693cbe11f8ab3ba0b0 to your computer and use it in GitHub Desktop.

Select an option

Save aduartem/38693cbe11f8ab3ba0b0 to your computer and use it in GitHub Desktop.
Python - Parsing JSON
#!/usr/bin/python
import json
json_string = '{"Language":[{"Name":"Python"},{"Name":"Ruby"},{"Name":"Java"},{"Name":"C"},{"Name":"PHP"}]}'
data = json.loads(json_string)
i=0
for lenguaje in data['Language']:
print '- ' + str(data['Language'][i]['Name'])
i+=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment