i've got a C# web Api receiving the following object :
"cars": {
"bmw": true,
"benz": false,
"kia": true,
"hyundai": false,
"madza": false,
"ford": false
}
the class property is as follows :
public CarsViewModel cars{ get; set; }
How can i get all the values that are true in the above object?