if (string.Compare(json["result"].ToString(), "OK", true) == 0) { if (string.Compare(json["list"][0]["result"].ToString(), "OK", true) == 0) return null; //omitted }