Code example for JSONObject

Methods: has, isNull

0
    return array.isNull(index);
  } 
 
  public boolean isNull(String key) {
    // Treat undefined and null as the same 
    return !obj.has(key) || obj.isNull(key);
  } 
 
  public boolean isNumber() { 
    return number != null;
  } 
 
  public boolean isReified(String key) {
    return reified.containsKey(key);
  } 
 
  public boolean isString() { 
    return string != null;
  } 
 
  public boolean isUndefined(String key) {