changed the json serialization to use simplejson module instead of json