public static boolean allSimpleValues ( JSONArray array ) throws JSONException { for ( int i = 0 ; i < array . length ( ) ; ++ i ) { if ( ! isSimpleValue ( array . get ( i ) ) ) { return false ; } } return true ; }
Returns whether all of the elements in the given array are simple values .