docs: public static <T> void writeJson(T obj, File file) {
      StringWriter writer = new StringWriter();
      try {
        objectMapper.writeValue(writer, obj);
        Files.write(file.toPath(), writer.toString().getBytes());
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }