let json = try JSONSerialization.jsonObject(with: data!, options: []) as? NSDictionary
print(json)
My print statement gave following result :
`Result = [
{
Friday = 0;
Monday = 0;
Saturday = 0;
Sunday = 0;
Thursday = 0;
Tuesday = 0;
Wednesday = 1;
},
{
Friday = 1;
Monday = 0;
Saturday = 0;
Sunday = 0;
Thursday = 0;
Tuesday = 0;
Wednesday = 0;
}]
I want to get the days whose value is 1 (In above JSON
I want Wednesday and Friday)
How to iterate through this JSON
?
Thanks in advance.