my program now saves the json returned string to local storage