docs: public static JsonObject toJsonObject(Map<String, ?> map) {
          JsonObject properties = new JsonObject();
          for (Map.Entry<String, ?> property : map.entrySet()) {
              properties.add(property.getKey(), Json.value(property.getValue().toString()));
          }
          return properties;
      }