save to json: first draft