This is the string I receive from Playfab from result.FunctionResult.ToString().
"\"[{\\\"PlayFabId\\\":\\\"1C5BD2AB86B747B9\\\",\\\"Result\\\":true,\\\"ItemId\\\":\\\"Silver_CheckInChest\\\",\\\"ItemInstanceId\\\":\\\"4DB10C5AB87A4465\\\",\\\"ItemClass\\\":\\\"CheckInReward\\\",\\\"PurchaseDate\\\":\\\"2020-08-26T09:17:05.339Z\\\",\\\"Expiration\\\":\\\"2020-08-26T09:17:08.339Z\\\",\\\"Annotation\\\":\\\"Granted for logging in over 1 consecutive days.\\\",\\\"CatalogVersion\\\":\\\"DailyRewards\\\",\\\"DisplayName\\\":\\\"Silver feather chest\\\",\\\"UnitPrice\\\":0,\\\"BundleContents\\\":[]}]\""
But the code that I have throws Invalid cast from 'System.String' to 'System.Collections.Generic.List
when I use the deserializer for the List type ItemInstance. What could be the issue?
List<ItemInstance> grantedItems = PlayFabSimpleJson.DeserializeObject<List<ItemInstance>>(result.FunctionResult.ToString());