forgot to dump the res dict to json