[
{ "_id" : "BrownHair", "Count" : 1 },
{"_id" : "BlackHair" , "Count" : 5},
{"_id" : "WhiteHair" , "Count" : 15}
]
I would like convert above json to C# POCO Object like below
public class HairColors
{
public int BrownHair { get; set; }
public int BlackHair { get; set; }
public int WhiteHair { get; set; }
}
Mind that I cannot change structures of neither POCO nor JSON.