I need the program to read this information:
{"kiseryota": {"id": 15031780, "name": "Kise Ryota", "profileIconId": 1374, "summonerLevel": 30, "revisionDate": 1475089675000}}
I'm doing this: Structure:
public struct SummonerInfo0
{
public long Id { get; set; }
public string Name { get; set; }
public int ProfileIconId { get; set; }
public long RevisionDate { get; set; }
public long Level { get; set; }
}
Declaring an object of the structure:
private SummonerInfo0 _summonerInfo0;
Receiving string:
_jsonSummonerInfo0 = e.Result;
Deserializing (I do not know how to spell):
_summonerInfo0 = JsonConvert.DeserializeObject<SummonerInfo0>(_jsonSummonerInfo0);
The problem is that apparently the way I get the information, it looks like a structure inside the other, I tried to put one inside the other but it did not work, then I do not know what to do: