JSON Performance — Large Files & Formats

Handle large JSON, optimize performance, and compare JSON with binary formats.

·8 min read

FlatBuffers & Cap'n Proto: Zero-Copy Serialization Beyond JSON

When even Protobuf's parse step is too slow, zero-copy formats read fields straight from the buffer with no deserialization. How FlatBuffers and Cap'n Proto work and when they're worth it.

·9 min read

Streaming JSON Parsers: Handle Files Bigger Than Memory

JSON.parse loads the whole document into RAM. Streaming and SAX-style parsers process JSON in a constant-memory pass — plus NDJSON, simdjson, and how to choose.

·9 min read

Apache Arrow vs JSON: When Row-Based Text Stops Scaling

JSON is rows of text; Arrow is columns of typed memory. Why analytics engines moved to Arrow, what columnar buys you, and how the two formats actually complement each other.

·8 min read

Gzip vs. Brotli for JSON APIs — The Algorithm Differences That Actually Matter

Both compress JSON responses well, but they aren't interchangeable — Brotli's built-in dictionary favors web/JSON text specifically, while its slowest quality levels are too costly for per-request dynamic compression. Here's the actual tradeoff.

·8 min read

Parquet vs. JSON — Columnar Storage for Analytics at Scale

Row-based formats like JSON, MessagePack and Protobuf all optimize the same axis — one record after another. Parquet rethinks the layout entirely, and that's what makes it dominant for analytics.

·8 min read

Protocol Buffers vs JSON: When Should You Switch?

JSON is universal and readable; Protobuf is compact and fast. A practical comparison of size, speed, schemas, and when each is the right call.

·9 min read

MessagePack, CBOR & Avro: Binary JSON Alternatives Compared

When plain JSON is too slow or too large — a practical comparison of MessagePack, CBOR and Avro, three binary formats that model JSON-like data more compactly.

·8 min read

JSON Size Limits: What Browsers, Databases and APIs Actually Allow

The real, often-undocumented JSON size limits in V8, PostgreSQL JSONB, MongoDB, API gateways and localStorage — and what happens when you hit them.

·9 min read

JSON Performance: Optimization Tips for APIs and Applications

Speed up JSON-heavy applications with practical tips on payload size, streaming, caching, schema-first serialization, and benchmarking techniques.

·7 min read

Parsing Large JSON Files Without Crashing

Handle large JSON files in Node.js without running out of memory. Streaming parsers, chunked processing, and when to use JSON.parse vs alternatives.