fixed json.dumps for put request