Python - json和simplejson比较(转)
加入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.