save data with json and local storage