save data in json locally