private Map<String, Object> readJsonData(InputStream input) throws IOException {
        int numOfPaths = readVarInt(input);
        if (numOfPaths == 0) {
            return Collections.emptyMap();
        }

        Map<String, Object> obj = new HashMap<>();
        for (int i = 0; i < numOfPaths; i++) {
            String path = readString(input);
            Object value = readValue(JSON_PLACEHOLDER_COL);
            obj.put(path, value);
        }
        return obj;
    }
Byte allocator that caches preallocated byte arrays for small sizes.
client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java