[Python]剖析json資料
#!/usr/bin/python
#python program:getting data from sites provided json format data
 
import urllib,simplejson
 
#set the source address
url = 'http://www.my-domain.com/sample.json'
 
#getting data
text = urllib.urlopen(url)
 
#/parse the json data and put into result
result = simplejson.load(text)
 
for ele in result:
    #do something you want
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License