JSON Toolkit

Knowledge Base

A learning path that walks JSON from grammar and formats through querying, validation and production practice, each article paired with a working online tool.

Categories

Category cover for JSON Basics and the Specification

JSON Basics and the Specification

Starting from RFC 8259 and ECMA-404, this category lays out JSON's grammar, types, encoding, and parsing boundaries — the foundation every piece of JSON work rests on.

6 articles
Extended formats and dialects category cover

Extended Formats and Dialects

JSON5, JSONC, JSON Lines and NDJSON solve real needs such as comments, trailing commas and streaming, and bring compatibility and selection problems of their own.

10 articles
Querying and Incremental Modification category cover

Querying and Incremental Modification

Taking one value out of JSON or changing one field looks simple, but once standardized it becomes four specifications: JSONPath, JSON Pointer, JSON Patch, and Merge Patch.

5 articles
Category cover for Schema and Validation

Schema and Validation

Describe the shape of your data with JSON Schema, turn verbal agreements into executable validation, and let it drive TypeScript types and form generation in turn.

8 articles
Format conversion category cover

Format Conversion

Converting between JSON and YAML, XML, CSV, TypeScript, Java, Go, and SQL is never lossless. What matters is being explicit about where the loss happens.

8 articles
Performance and Security category cover

Performance and Security

A JSON file of tens of megabytes can freeze the main thread, and carefully crafted JSON can punch through a service; this category covers both throughput and defenses.

9 articles
Tools & Ecosystem category cover

Tools & Ecosystem

Parsing libraries, command-line tools, and editor plugins form the everyday JSON toolchain; the key to choosing between them is error-location quality and ecosystem maintenance health.

6 articles
Engineering Practice category cover

Engineering Practice

Putting JSON into real systems: how to define API contracts, how to manage configuration and fixtures, how to handle version compatibility, and how to maintain test data.

6 articles
Cover for the frequently asked questions category

Frequently Asked Questions

Collects the most frequently asked questions about the tools on this site and about the JSON specification, grouped by scenario, with an answer you can act on directly instead of a vague conclusion.

25 articles

Recently updated

Reading Big JSON in Node.js: stream-json Streaming and Backpressure in Practice

Parsing a 186MB JSON array with readFileSync plus JSON.parse peaks at 612MB of resident memory; switching to stream-json's streamArray keeps it flat at 104MB. This guide walks through measured results for four reading strategies, explains why for await provides backpressure for free, how the data event loses it, and how to size highWaterMark and drain on the write side.

Intermediate~5 min readUpdated 2026-11-17

Parsing JSON Before It Finishes Arriving: Streaming Preview and Incremental Repair

LLMs emit JSON token by token and APIs deliver big responses in chunks, but JSON.parse refuses to run until the whole document arrives. This guide separates three implementation styles — full repair, true incremental repair and partial parsing — and shows how an Allow mask keeps previews stable, backed by measured pipeline numbers and production-ready code.

Intermediate~5 min readUpdated 2026-11-16

Parsing Large JSON in Python, Benchmark: stdlib, orjson, and msgspec

The same NDJSON star-counting script takes 754 ms with the standard json library but only 146 ms with msgspec declarative decoding, and multi-core parallelism pushes it another order of magnitude. This article benchmarks stdlib, orjson, and msgspec step by step on a 61.4 MB, 300,000-line sample, and explains exactly where each speedup comes from and when it runs out.

Advanced~6 min readUpdated 2026-11-15

When an LLM JSON Output Is Truncated: Read the Stop Reason First

The model returns JSON that stops mid-value, and the parser only gives you a column number. Closing the brackets makes it parse again, but every missing field is now hidden inside the data. This article draws the line between what truncation repair can honestly recover and what must be retried, from stop_reason gating to schema field ordering.

Advanced~5 min readUpdated 2026-11-14