code: private boolean canAutoExpand( JSONArray array ) {
        for( int i = 0; i < array.size(); i++ ){
           if( !(array.get( i ) instanceof JSONObject) ){
              return false;
           }
        }
        return true;
     }
docs: Only perform auto expansion if all children are objects.
  
  @param array The array to check
  @return True if all children are objects, false otherwise.