2
I need the program to read this information:
{"kiseryota":{"id":15031780,"name":"Kise Ryota","profileIconId":1374,"summonerLevel":30,"revisionDate":1475089675000}}
Here’s what I’m doing: 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 the string:
_jsonSummonerInfo0 = e.Result;
Deserializing (I don’t know how to spell it):
_summonerInfo0 = JsonConvert.DeserializeObject<SummonerInfo0>(_jsonSummonerInfo0);
The problem is that apparently the way I get the information, it looks like one structure inside the other, I tried to put one inside the other but it didn’t work, so I don’t know what else to do :/
Will pass directly or through parameters?
– João C.