JSON & APIs — REST, GraphQL, Webhooks & More
Design JSON APIs: REST best practices, GraphQL, webhooks, pagination, logging, and real-time.
JSON-RPC 2.0 Explained: The Protocol Behind MCP and the Blockchain
JSON-RPC 2.0 is a tiny, transport-agnostic remote-call protocol — request, response, error, batch, and notifications. Why it powers MCP, Ethereum, and Language Server Protocol.
HTTP Methods and JSON: GET, POST, PUT, PATCH, DELETE, QUERY Explained
How each HTTP method uses JSON in practice — request bodies, idempotency, PUT vs PATCH, the new QUERY method, and real request/response examples for a REST API.
JSON:API: A Standard Format for REST Responses
JSON:API is a specification for how to shape REST responses — resources, relationships, includes, and errors. Learn the format and when it's worth adopting.
Server-Sent Events (SSE): Streaming JSON to the Browser
SSE is the simplest way to stream JSON from server to browser over plain HTTP — the backbone of streaming AI responses. Learn the format, code, and when to use it.
Content Negotiation for JSON APIs — The Accept Header, Explained
Why an API checks the Accept header before responding, what application/json vs a vendor media type like application/vnd.github+json actually signals, and where this silently breaks.
Structured JSON Logging: Best Practices
Plain-text logs do not scale. Learn how structured JSON logging makes your logs searchable, queryable, and ready for modern observability tools.