ā JSON serialization fails
After the serialization
RiotChampionWrapper.Champions
is null. The problem might be that each item has a different name. How can I fix it?
6 Replies
data
in your json is not an array, but an object with properties Aatrox
and Ahri
it should be something like this if you want an array instead:
(with square brackets [])Sadly I am unable to change the json.
or your class could have a property
private Dictionary<string, RiotChampion> Champions { get; set; }
insteadThanks. That's works
š
shouldn't it be public tho?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.