[python] Parsing, Decoding, Read json

  • 0
Referencing: parsing json python, python json decoding
These two article should be clear enough! 這兩篇應該就蠻清楚的了!

JSON objects behave like dictionaries, JSON format is a list containing objects
-> access object by json[object], and len(json) would get the length of json
-> using iterator on a dictionary, hence can be used on json format.
get keys by simple dict.keys(), get values by simple dict.values()
http://www.python.org/dev/peps/pep-3106/

沒有留言 :

張貼留言