private QueryBuilder genericRequest(String type, String value) throws Exception {
        JSONObject op = new JSONObject();
        op.put(type, value);
        JSONArray operations = (JSONArray) request.get(Constants.REQUEST_OPERATIONS);
        operations.put(op);
        request.remove(Constants.REQUEST_OPERATIONS);
        request.put(Constants.REQUEST_OPERATIONS, operations);
        return this;
    }
private QueryBuilder genericRequest ( String type , String value ) throws Exception { JSONObject op = new JSONObject ( ) ; op . put ( type , value ) ; JSONArray operations = ( JSONArray ) request . get ( Constants . REQUEST_OPERATIONS ) ; operations . put ( op ) ; request . remove ( Constants . REQUEST_OPERATIONS ) ; request . put ( Constants . REQUEST_OPERATIONS , operations ) ; return this ; }
Creates a key value request
@param type
@param value
@return
@throws Exception