private async Task GetData() { var localStorageCount = await localStorage.GetItemAsync<string>("LocalDataDishes"); //parse localStorageCount into json format jsonString = JsonConvert.SerializeObject(localStorageCount); // Retrieve the values JObject json = JObject.Parse(localStorageCount); dishName = (string)json["dishname"]; count = (int)json["Count"]; id = (int)json["ID"]; dishDescription = (string)json["dishdiscription"]; }