@SuppressWarnings({ "rawtypes", "unchecked" })
	public static String maptoJSON(Map map) 
	{	
		Set<String> keys = map.keySet();
		String key = "";
		String value = "";
		StringBuffer jsonBuffer = new StringBuffer();
		jsonBuffer.append("{\"weather\":{");
		for (Iterator<String> it = keys.iterator(); it.hasNext();) {
			key = (String) it.next();
			value = (String) map.get(key);
			jsonBuffer.append("\""+key +"\""+ ":" +"\""+ value+"\"");
			if (it.hasNext()) {
				jsonBuffer.append(",");
			}
		}
		jsonBuffer.append("}}");
		return jsonBuffer.toString();
	}