public static String[][] deviceSummariesToTable() {

		List<DeviceSummary> summaries = null;
		try {
			summaries = DevicesJSON.getDeviceSummaries();
		} catch (JSONException e) {
			e.printStackTrace();
		}

		String[][] tableArr = new String[summaries.size()][6];
		int count = 0;

		for (DeviceSummary sum : summaries) {
			List<String> stringList = new ArrayList<String>();
			stringList.add(String.valueOf(count + 1));
			stringList.add(sum.getMacAddress());
			if (sum.getIpv4() != null)
				stringList.add(sum.getIpv4());
			else
				stringList.add("None");
			if (sum.getAttachedSwitch() != null)
				stringList.add(sum.getAttachedSwitch());
			else
				stringList.add("None");
			if (sum.getSwitchPort() != 0)
				stringList.add(String.valueOf(sum.getSwitchPort()));
			else
				stringList.add("None");
			stringList.add(String.valueOf(sum.getLastSeen()));

			tableArr[count] = stringList.toArray(new String[stringList.size()]);
			count++;
		}
		return tableArr;
	}