NSDictionary* json = [html JSONValue];
bool bol = [[json objectForKey:@"state"] boolValue];
switch (bol) {
  case 0: //false
    break;
  case 1: //true
    break;
}