JSON

JSON articles: the syntax, JSON vs XML and YAML, parsing in JavaScript and Python, JSONPath, Schema with OpenAI, and building APIs on Cloudflare Workers.

Apr 10, 2026 · 7 min read

What is JSON? A Complete Guide for Developers

JSON is the universal language of modern APIs and config files. Learn the six data types, syntax rules, and why JSON became the format that ate the web.

Read article →
Apr 10, 2026 · 6 min read

JSON vs XML: Which Should You Use?

Both formats represent structured data, but they serve very different purposes. A practical breakdown with side-by-side examples and a clear decision guide.

Read article →
Apr 10, 2026 · 6 min read

JSON vs YAML: Differences Explained

JSON vs YAML: JSON is strict and predictable, YAML easier on the eye but full of type coercion surprises. When to pick each, and gotchas from real outages.

Read article →
Apr 10, 2026 · 8 min read

How to Parse JSON in JavaScript (The Right Way)

JSON.parse() and JSON.stringify() are deceptively simple. Learn error handling, optional chaining, what stringify silently drops, and real-world fetch patterns.

Read article →
Apr 10, 2026 · 7 min read

How to Read and Write JSON in Python

Python's json module ships with everything you need, so there is nothing to pip install. Covers json.loads, json.dumps, file I/O, custom encoders and errors.

Read article →
Apr 17, 2026 · 9 min read

JSONPath: How to Query JSON Data

JSONPath guide: the query syntax for pulling values out of JSON, like XPath for XML, with filters and wildcards tried on real data in JavaScript and Python.

Read article →
Apr 17, 2026 · 10 min read

Cloudflare Workers and JSON: A Practical Guide

Cloudflare Workers JSON patterns past the toy stage: parsing request bodies safely, CORS headers, proxying an upstream API, and caching responses at the edge.

Read article →
Apr 17, 2026 · 10 min read

Using JSON Schema with OpenAI Structured Outputs

JSON Schema with OpenAI Structured Outputs: design schemas the model must follow, turn on strict mode, handle refusals, and stop stripping markdown fences.

Read article →
Apr 17, 2026 · 11 min read

How to Reliably Parse JSON from LLM Responses

Parse JSON from LLM responses reliably. Models break it five ways: code fences, commentary, truncation, invented keys, wrong types. Here are the fixes.

Read article →
Apr 17, 2026 · 11 min read

JSON REST API Response Design: Best Practices That Actually Hold Up

REST API JSON response design: RFC 7807 error bodies, pagination, nulls versus missing fields, dates, field naming and versioning, plus anti-patterns.

Read article →
Oct 15, 2025 · 8 min read

Deploy a JSON API on Cloudflare Workers in 10 Minutes (No Credit Card)

Deploy a JSON API on Cloudflare Workers in ten minutes with no server, Dockerfile or credit card, on the free tier, ending with a real validating endpoint.

Read article →