switch from pickle to json