I created this object but I don't know how to get the values in the client code.
It's not working with my code code. I get this exception:
"Invalid JSON string\nParameter name: json"
private async Task Getobjectjson() { var result = await PlayFabDataAPI.GetObjectsAsync(new GetObjectsRequest() { Entity = new PlayFab.DataModels.EntityKey { Id = EntityID, Type = EntityType } }); if (result.Error != null) Console.WriteLine("Error."); else { int HealthValue, ManaValue; Dictionary<string, object> dic = PlayFabSimpleJson.DeserializeObject<Dictionary<string, object>>(result.Result.Objects.ToString()); if (dic.TryGetValue("Health", out object a)) HealthValue = Convert.ToInt32(a); if (dic.TryGetValue("Mana", out object b)) ManaValue = Convert.ToInt32(b); } }
How can I get the values 100(Health) and 10000(Mana) in the client code?