String buildJSON() {
		/* we can't use an object wrapper like jackson here because a value could be json too */
		
		// cleaning of blank or empty values
		for(String key: configEntries.keySet()) {
			String val = configEntries.get(key).toString();
			if (StringUtils.isNullOrEmptyOrBlank(val)) {
				configEntries.remove(key);
				continue;
			}			
			// quote json values, if not quoted yet
			if (!val.startsWith("'") && !val.endsWith("'") && !val.startsWith("[") && !val.startsWith("{"))
				configEntries.put(key, String.format("'%s'", val));
		}
		
		// build json
		StringBuilder sb = new StringBuilder();
		sb.append("{");
		boolean isFirst = true;
		for(String key : configEntries.keySet()) {
			if(!isFirst)
				sb.append(",\n");
			sb.append(String.format(" %s : %s ", key, configEntries.get(key)));
			isFirst = false;
		}
		sb.append("}");
		return sb.toString();
	}