title: Java, Parse JSON Objects that I know are null
body: <p>I have an array of JSON objects. To parse these arrays and store the simply data type values, I have to make assumptions of the key names and store them accordingly.</p>
  
  <p>I also know that sometimes the key's values will be null.  example <code>{["promotion":null]}</code> how would I parse this?</p>
  
  <p>If I try to access a key whose value is null, I get a JSONException. Now this makes sense, but even if I do <code>if(myJSObject.getString("promotion")!=null)</code> then I will still get JSON exception when it checks </p>
  
  <p>how would I do a conditional check in my code for null objects so that I can avoid the JSON exception</p>