jsonpost

The JSONPost Blog

Guides and deep-dives on working with JSON — from formatting and validation to schemas, conversions, and developer workflows.

JSON SchemaValidation

Validating JSON with JSON Schema

Learn how JSON Schema works, how to generate a schema from sample data, and how to validate documents with clear, path-based error messages.

1 min read
JSON5JSONC

JSON vs JSON5 vs JSONC — What's the Difference?

Comments, trailing commas, and unquoted keys — understand JSON5 and JSONC, where each is used, and how to convert them to strict JSON.

1 min read
JSONFormatting

How to Format JSON (and Why It Matters)

A practical guide to beautifying, indenting, and minifying JSON — and when to use each, with tips for debugging messy API responses.

1 min read
JavaScriptSecurity

Safely Parsing Untrusted JSON in JavaScript

Parse untrusted JSON in JavaScript without crashing or opening security holes — try/catch, revivers, prototype pollution, schema validation, size and depth limits.

6 min read
PerformanceOptimization

How to Shrink JSON Payloads and Speed Up Your API

Practical techniques to reduce JSON payload size — minification, gzip and brotli, shorter keys, dropping nulls, pagination — with before and after byte measurements.

5 min read
NDJSONStreaming

NDJSON and JSON Lines: Streaming JSON at Scale

Why one JSON object per line beats a giant array for streaming, logs, and big data, with Node and Python examples for reading, writing, and converting NDJSON.

6 min read
JSON SchemaValidation

JSON Schema Deep Dive: Validation Beyond the Basics

A practical tour of JSON Schema validation covering types, required fields, formats, numeric and array constraints, composition keywords, $ref reuse, and drafts.

6 min read
JWTAuthentication

Understanding and Decoding JSON Web Tokens (JWT)

Learn JWT structure, base64url encoding, and standard claims — how to decode tokens in JavaScript, why decoding is not verifying, and security best practices.

5 min read
YAMLConfig

YAML vs JSON for Configuration: A Developer's Guide

Compare YAML and JSON for config files — comments, anchors, multiline strings, the Norway problem, and when to convert between the two for your tooling.

5 min read
CSVConversion

JSON to CSV and Back: Handling Nested Data and Edge Cases

Convert JSON to CSV and back without losing data. Flatten nested objects, handle arrays, escape special characters, pick delimiters, and dodge Excel pitfalls.

6 min read
TypeScriptTypes

From JSON to TypeScript Types: A Complete Guide

Turn JSON API responses into accurate TypeScript types. Learn interfaces vs type aliases, nested data, optional and nullable fields, unions, and validation.

6 min read
jqCLI

A Practical jq Cookbook for Wrangling JSON

A hands-on jq cookbook of copy-paste recipes — pipes, map, select, building objects, group_by, to_entries, and using jq with curl on real API data.

5 min read
JSONPathQuerying

Mastering JSONPath: Query JSON Like a Pro

Learn JSONPath from the ground up — root, child, recursive descent, wildcards, array slices, and filter expressions — with real nested JSON and dozens of examples.

6 min read