public static <T> T loadResource(String filePath, Class<T> clazz) throws IOException {
        try (InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(filePath)) {
            return jsonMapper.readValue(in, clazz);
        }
    }
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