code: public String getJSONMessages() {
  		StringBuilder builder = new StringBuilder();
  		builder.append("{");
  		
  		boolean first = true;
  		Enumeration<String> keys = this.bundle.getKeys();
  		while (keys.hasMoreElements()) {
  			if (!first)
  				builder.append(",");
  			else
  				first = false;
  			String key = keys.nextElement();
  			String value = this.getMessage(key);
  			String escaped = value.replaceAll("\\'", "\\\\'");
  			builder.append("'").append(key).append("':'").append(escaped).append("'");
  		}
  		
  		builder.append("}");
  		return builder.toString();
  	}
docs: Obtém uma string com um mapa em JSON de todas as mensagens.