code: public JSONObject toJSONObject( JSONArray names ) {
        if( names == null || names.size() == 0 || size() == 0 ){
           return null;
        }
        JSONObject jo = new JSONObject();
        for( int i = 0; i < names.size(); i++ ){
           jo.element( names.getString( i ), this.opt( i ) );
        }
        return jo;
     }
docs: Produce a JSONObject by combining a JSONArray of names with the values of
  this JSONArray.
  
  @param names A JSONArray containing a list of key strings. These will be
  paired with the values.
  @return A JSONObject, or null if there are no names or if this JSONArray
  has no values.
  @throws JSONException If any of the names are null.