refine
serialize to json and save to file
indent code
refine code