[Solved] How do I identify NSDictionary is empty or not
According to the output dict is not a dictionary ({}), it’s an array (()) containing one empty dictionary. To check if there is a dictionary in the array which is not empty you could use (I renamed dict to array) if (array.count > 0 && array[0].count > 0) { // will be evaluated to true … Read more