In Python 2.6 use simplejson if possible for json serialization performance improvement.