Json to local storage