Package cloud.opencode.base.json.stream


package cloud.opencode.base.json.stream
JSON Stream - Streaming API for Large JSON Processing JSON Stream - 大 JSON 处理的流式 API

This package provides streaming API for processing large JSON files without loading everything into memory.

本包提供流式 API 用于处理大型 JSON 文件,无需将所有内容加载到内存中。

Key Interfaces | 核心接口:

Usage Examples | 使用示例:

try (JsonReader reader = JsonReader.create(inputStream)) {
    while (reader.nextToken() != null) {
        User user = reader.readValueAs(User.class);
        process(user);
    }
}
Since:
JDK 25, opencode-base-json V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Class
    Description
    JSON Reader - Streaming JSON Parser Interface JSON 读取器 - 流式 JSON 解析器接口
    JSON Token - Token Types for Streaming JSON Parser JSON 令牌 - 流式 JSON 解析器的令牌类型
    JSON Writer - Streaming JSON Generator Interface JSON 写入器 - 流式 JSON 生成器接口