need to convert pickle to json