code: public JSONArray toJSONArray( JSONArray names ) {
        verifyIsNull();
        if( names == null || names.size() == 0 ){
           return null;
        }
        JSONArray ja = new JSONArray();
        for( int i = 0; i < names.size(); i += 1 ){
           ja.element( this.opt( names.getString( i ) ) );
        }
        return ja;
     }
docs: Produce a JSONArray containing the values of the members of this
  JSONObject.
  
  @param names A JSONArray containing a list of key strings. This determines
  the sequence of the values in the result.
  @return A JSONArray of values.
  @throws JSONException If any of the values are non-finite numbers.