private static JSONObject dicDicToJson(Dictionary<String, Dictionary<String, Integer>> dic) {
		
		if (dic == null) {
			return  null;
		}
		
		JSONObject json = new JSONObject();
		Set<String> set = ( (Hashtable< String, Dictionary<String, Integer>>) dic).keySet();
		JSONObject valJson = null;
		for (String key : set) {
			valJson = new JSONObject();
			Set<String> valSet = ( (Hashtable< String, Integer>) dic.get(key)).keySet();
			for (String valKey : valSet) {
				valJson.put(valKey, dic.get(key).get(valKey)); 
			}
			json.put(key, valJson);
		}
		return json;
	}