Save json data to local storage.