I want to check if my Bond is empty or null and NULL value.
{
Bonds =(
{
DOB = "12/09/1988";
about = "";
}
);
User = {
city = CA;
email = "[email protected]";
};
success = True;
}
Second time this type get data how to check Bond key
{
Bonds = Null;
User = {
city = CA;
email = "[email protected]";
};
success = True;
}
You just check for nil
if(data[@"Bonds"]==nil){
NSLog(@"it is nil");
}
or
if ([data[@"Bonds"] isKindOfClass:[NSNull class]]) {
NSLog(@"it is null");
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With