summary.Data.Players[0].GameExtraInfo Returns Null

Topics: Bugs
Jan 21, 2014 at 3:05 AM
Edited Jan 21, 2014 at 3:05 AM
So I have my code like so:
SteamWebAPI.SetGlobalKey("XXXXXXXXXXXXXXXXX");
var identity = SteamIdentity.FromAccountID((int)Session["SteamId"]);
var summary = SteamWebAPI.General().ISteamUser().GetPlayerSummaries(identity).GetResponse();
string personaStatus = summary.Data.Players[0].GameExtraInfo;
Yet GameExtraInfo is returning null. I am trying to pull the info of the current game they are in. I seem to be pull other information fine (example avatars).

I checked the official steam api and seen this should be available. So I pulled the API down and was indeed able to see GameExtraInfo.
http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=(INSERTYOUROWNKEYHERE)&steamids=SteamID=76561197975039363
Jan 24, 2014 at 2:55 AM
Hi allencoded. I have fixed the issue. The problem was that the mapping of GameExtraInfo for serialization (gameextrainfo) had one extra space after it! Json.NET did not recognize the property and therefore the property was not populated. I have fixed the issue in the latest release. Thank you.
Marked as answer by helloworld65 on 1/23/2014 at 6:55 PM