Hi, I dont know whether this is a bug or some issue from my end.
In the Success call back to the GetCatalogue Api. Everything runs fine. I get all the prices. But whenever I save the catalogue using result.ToJson() and then load it again. Everything is still fine apart from the the prices. VirtualCurrencyPrices are null even tho they are there in the txt file savedcatalogue.txt. As you can see All the values are there in the text file but retrieving them i get null.
uint cost = item.VirtualCurrencyPrices["GC"]; Debug.Log("Loaded.. item Price = " + cost); this always return null exception.
private void SuccessGettingCatalogue(GetCatalogItemsResult result) { foreach (CatalogItem item in result.Catalog) { uint cost = item.VirtualCurrencyPrices["GC"]; Debug.Log("Loaded.. item Price = " + cost); } var str= result.ToJson(); string path = Path.Combine(Application.persistentDataPath, "SavedCatalogue.txt"); File.WriteAllText(path,str); } void LoadData() { string jsonString = LoadJson(); GetCatalogItemsResult MySavedCatalogueResult= JsonUtility.FromJson<GetCatalogItemsResult>(jsonString); List<CatalogItem> MySavedCatalogue = MySavedCatalogueResult.Catalog; foreach (CatalogItem item in MySavedCatalogue) { uint cost = item.VirtualCurrencyPrices["GC"]; Debug.Log("Loaded.. item Price = " + cost); } } public string LoadJson() { string MyString; string path = Path.Combine(Application.persistentDataPath, "SavedCatalogue.txt"); if (File.Exists(path)) { using (StreamReader reader = new StreamReader(path)) { MyString=File.ReadAllText(path); } return MyString; } return null; }