json is not in py24, use simplejson too if this needs to run on 2.4