OfficeIMO.Reader.Json provides a modular JSON ingestion adapter for OfficeIMO.Reader.Core.
dotnet add package OfficeIMO.Reader.Jsonusing OfficeIMO.Reader;
using OfficeIMO.Reader.Json;
OfficeDocumentReader reader = new OfficeDocumentReaderBuilder()
.AddJsonHandler()
.Build();using OfficeIMO.Reader;
using OfficeIMO.Reader.Json;
OfficeDocumentReader reader = new OfficeDocumentReaderBuilder()
.AddJsonHandler(new JsonReadOptions {
ChunkRows = 100,
MaxDepth = 16,
IncludeMarkdown = true
})
.Build();
foreach (var chunk in reader.Read("appsettings.json", new ReaderOptions {
MaxInputBytes = 5L * 1024L * 1024L
})) {
Console.WriteLine(chunk.Markdown ?? chunk.Text);
}using OfficeIMO.Reader;
using OfficeIMO.Reader.Json;
OfficeDocumentReader reader = new OfficeDocumentReaderBuilder()
.AddJsonHandler()
.Build();
await using var stream = File.OpenRead("payload.json");
var chunks = reader.Read(stream, "payload.json", new ReaderOptions {
MaxChars = 3_000
}).ToList();- AST traversal through
System.Text.Json. - Path/type/value rows.
- Chunked structured output with optional Markdown tables.
- Path and stream dispatch.
- Warning chunks for malformed JSON.
- Reader adapter configuration belongs here.
- Shared extraction contracts belong in
OfficeIMO.Reader.Core.
- Targets:
netstandard2.0,net8.0,net10.0. - License: MIT.
- External:
System.Text.Json. - OfficeIMO:
OfficeIMO.Reader.Coreowns chunking, limits, locations, warnings, and result projection.
See the complete OfficeIMO package map for related formats and conversion paths.