public static List<Currency> formatOutputs(JSONArray results) {
		final List<Currency> ret = new ArrayList<Currency>();

		for (int i = 0; i < results.length(); i++) {
			JSONObject r = null;
			if (results.get(i) instanceof JSONObject)
				r = (JSONObject) results.get(i);
			if (r != null) {
				final Currency c = new Currency();
				if (r.has("name"))
					c.setName(r.get("name").toString());
				c.setNumber(r.get("number").toString());
				c.setSymbol(r.get("symbol").toString());
				c.setUuid(r.get("uuid").toString());
				ret.add(c);
			}
		}
		return ret;
	}