public static String jsonify(ICommandResult<IType> commandResult, HashMap<String, String> map) {
		
		if (commandResult==null || commandResult.getSize()==0)
			return("{}"); 
		String [] columnsNames = commandResult.getArrayList().get(0).getColumNames();
		StringBuilder result = new StringBuilder();
		if (commandResult.getSize()>=2)
			result.append("[");
		for (int i = 0; i < commandResult.getSize(); i++){
			result.append("{");
			String [] row = commandResult.getArrayList().get(i).toString().split("\t");
			for (int j = 0; j<row.length; j++){
				result.append("\"" + columnsNames[j] + "\":");
				if(isNumeric(row[j]))
					result.append(row[j]);
				else
					result.append("\""+ row[j] + "\"");
				if(j!=row.length-1)
					result.append(",");
			}
			if(i!=commandResult.getSize()-1)
				result.append("},");
		}
		
		result.append("}");
		if (commandResult.getSize()>=2)
			result.append("]");
		return result.toString();
	}