generator
pickle to json