From the referral example up on Github:
The PlayFab.Json.JsonWrapper doesn't seem to be in the SDK anymore, how can I use the Unity JSON system to deserialize the list?
Thanks
void OnRedeemReferralCodeCallback(ExecuteCloudScriptResult result) { // output any errors that happend within cloud script if(result.Error != null) { Debug.LogError(string.Format("{0} -- {1}", result.Error, result.Error.Message)); return; } List<ItemInstance> grantedItems = PlayFab.Json.JsonWrapper.DeserializeObject<List<ItemInstance>>(result.FunctionResult.ToString()); if(grantedItems != null) { Debug.Log("SUCCESS!...\nYou Just Recieved:"); string output = string.Empty; foreach(var itemInstance in grantedItems) { output += string.Format("\t {0} \n", itemInstance.DisplayName); } this.inventory.AddRange(grantedItems); SearchForReferralBadge(); ShowReferredGroup(); Debug.Log(output); foreach(var statement in result.Logs) { Debug.Log(statement.Message); } } else { Debug.LogError("An error occured when attemtpting to deserialize the granted items."); } }