So i have a json file where one of the object name is the id of the person. So for each person its a different id. So i dont know how to serialize it.
{"19887289":[{"name":"Twisted Fate's Dragons","tier":"MASTER","queue":"RANKED_SOLO_5x5","entries":[{"playerOrTeamId":"19887289","playerOrTeamName":"Imaqtpie","division":"I","leaguePoints":237,"wins":72,"losses":37,"isHotStreak":false,"isVeteran":false,"isFreshBlood":true,"isInactive":false}]}]}
This is my json output.
And when i go to http://json2csharp.com/ and input it. It gives me a class name with __invalid_type__19887289
And this is what i have currently Dictionary< string, RootObject2 > root = JsonConvert.DeserializeObject< Dictionary< string, RootObject2 >>(jsonrank);
Edit ::: Fixed the issue by using this : Deserialize JSON into C# dynamic object?
Still curious how to solve my problem tho.