Developer Blog

Tutorials, Guides
& Deep Dives

Practical articles on JSON, REST APIs, developer tools and common errors — written for developers who want clear, fast answers.

JSONKit developer blog — JSON tutorials and guides
Showing 13 of 196 articles
performance

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.

·8mRead
database

SQLite JSON Functions: Store and Query JSON with SQL

SQLite has full JSON support built in — json_extract, the -> and ->> operators, json_each for arrays, and JSONB storage. Query JSON columns without a document database.

·8mRead
kafka

Kafka Schema Registry: Avro, JSON Schema & Compatibility Explained

A Schema Registry stops one bad producer from breaking every consumer. How the wire format works, the backward/forward/full compatibility modes, and the rules for evolving a schema safely.

·10mRead
api

TanStack Query: Caching JSON API Responses the Right Way

TanStack Query (React Query) turns fetch-and-store boilerplate into a managed cache. Query keys, staleTime vs gcTime, background refetching, and invalidation explained.

·9mRead
api

tRPC vs REST vs GraphQL: End-to-End Type Safety for JSON APIs

tRPC gives a TypeScript client and server one shared type with no schema or codegen. How it works, how it still ships JSON over HTTP, and when REST or GraphQL is the better call.

·9mRead
api

JSON to GraphQL Schema: Writing SDL Types from a JSON Sample

Convert a JSON response into GraphQL SDL — scalar mapping, the nullability model (why ! matters), lists, nested types, and input types. Plus what JSON can't express about a graph.

·8mRead
database

JSON to Prisma Schema: Model Your Database from a JSON Sample

Turn a JSON object into a Prisma model — scalar type mapping, optional fields, arrays, the Json type, relations, and the @id/@default attributes that a raw JSON sample can't express.

·9mRead
json

jq Cheat Sheet: The Recipes You Actually Use

A practical jq reference — filter, map, select, and reshape JSON from the command line. Field access, iteration, select/map, group_by, raw output, CSV, and NDJSON recipes.

·9mRead
json

JSON Number Precision: Why 0.1 + 0.2 Isn't 0.3

JSON has one number type and no precision rules — so parsers use IEEE 754 doubles. Where floating-point rounding and the 2^53 integer limit bite, and how to store money and IDs safely.

·8mRead
javascript

JSON Import Attributes: import data from './x.json' with { type: 'json' }

ES2025 standardized importing JSON modules with the `with { type: 'json' }` syntax. How it works, why the type attribute is required, dynamic imports, and the security reason behind it.

·8mRead
debugging

Bad Control Character in String Literal in JSON: Cause & Fix

This JSON.parse error means a raw newline, tab, or control character is sitting inside a string. Why it happens, how to escape it correctly, and how to stop it at the source.

·7mRead
performance

Prompt Caching: Structure Your JSON to Cut LLM Costs up to 90%

Providers cache stable prompt prefixes and bill them at a fraction of the price. The rule is simple: put static JSON first, volatile JSON last — and never reorder the stable part.

·8mRead