加入python stdlib時間
json: 2.6
simplejson: 2.4+
simplejson比json更新快, simplejson支持的python版本范圍更廣。
一種代碼導入實踐:
try: import simplejson as json except ImportError: import json
simplejson和json的性能:
For dumping, json
is faster than simplejson
. For loading, simplejson
is faster.