remove a call to json.dumps and replace with dumps