public static <T> T readObject(InputStream input, Class<T> clazz) throws IOException {
        return readObject(input, StandardCharsets.UTF_8, clazz);
    }
Utility class for reading and writing objects in JSON format.
clickhouse-data/src/main/java/com/clickhouse/data/format/JsonStreamUtils.java