code: public JSONObject getObject(String key) {
          Object tmp = objectMap.get(key);
          return tmp == null ? null
                  : tmp instanceof JSONObject ? (JSONObject) tmp : null;
      }
docs: get JSONObject value.
  
  @param key key.
  @return value or default value.