public boolean containsObject() throws JSONException {
      boolean result = false;
      Iterator i = this.map.values().iterator();
      while (!result && i.hasNext()) {
        Object value = i.next();
        result = value instanceof JSONObject 
          || value instanceof JSONArray
          && ((JSONArray) value).length()>0 
          && ((JSONArray) value).get(0) instanceof JSONObject;
      }
      return result;
    }