jsontext
v0.3.0
Published
A state machine for incremental JSON processing with high-level APIs.
Readme
JSONText
JSONText is a low-level, incremental UTF-8 JSON decoder and encoder for token-level processing, selective extraction, and Web Streams pipelines.
Installation
JSR
deno add jsr:@lcweden/jsontextimport { JSONTextSelectorStream } from "@lcweden/jsontext";npm
npm install jsontextimport { JSONTextSelectorStream } from "jsontext";JSONText is ESM-only. The core APIs use Uint8Array chunks and work in modern JavaScript runtimes.
The *Stream APIs require WHATWG Streams support.
API
See the JSR API reference for constructors, methods.
License
This project is licensed under the MIT License.
Acknowledgements
This project is inspired by Go's
encoding/json/jsontext standard library package and
.NET's
System.Text.Json.
