code: @SneakyThrows
     public static String dumps(@NonNull Map<String, ?> map) {
        Resource strResource = new StringResource();
        try (JsonWriter writer = new JsonWriter(strResource)) {
           writer.beginDocument();
           for (Map.Entry<String, ?> entry : map.entrySet()) {
              writer.property(entry.getKey(), entry.getValue());
           }
           writer.endDocument();
        }
        return strResource.readToString().trim();
     }
docs: Dumps a map in this format to a string.
  
  @param map the map to dump
  @return the string representation of the map