Checking for null objects in json

I wanted to run a condition to check for null objects in a json response but the condition below isn’t working. What am I doing wrong?

if(jsonResponse.ObjectOne){
}else if(jsonResponse.ObjectTwo){
}