public static void save(Path path, Object val) throws IOException {
        try (FileChannel file = FileChannel.open(path,
                StandardOpenOption.WRITE,
                StandardOpenOption.CREATE,
                StandardOpenOption.TRUNCATE_EXISTING)) {
            jsonMapper.writeValue(Channels.newOutputStream(file), val);
        }
    }
This class should only be used in config loading or debug.
Don't use in high performance required scenario.
indexr-common/src/main/java/io/indexr/util/JsonUtil.java