JSON Syntax & Data Types JSON (JavaScript Object Notation) is a text-based data format. It has exactly 6 value types and strict syntax rules. The 6 Value Types string — always double quotes: "hello" number — integer or f…
ReadJSON.parse & JSON.stringify The two core browser/Node.js APIs for converting between JSON strings and JavaScript values. JSON.stringify — JS → string JSON.stringify(value, replacer?, space?) // Basic JSON.stringify({ a: …
ReadJSON Schema & Validation JSON Schema is a vocabulary for describing the structure of JSON documents. Zod and Ajv are the most common validators in JS/TS projects. JSON Schema basics { "$schema": "https://json-schema.org/…
ReadJSON in REST APIs JSON is the default wire format for REST APIs. Knowing the conventions saves debugging time. Sending JSON with fetch // POST with JSON body const res = await fetch('/api/users', { method: 'POST', header…
ReadJSON: Syntax, Data Types & APIs JSON (JavaScript Object Notation) is a lightweight text format for data interchange. It's language-independent, human-readable, and the dominant format for REST APIs, config files, and NoS…
ReadJSON Schema, Validation & Tooling JSON Schema Basics JSON Schema is a vocabulary for annotating and validating JSON. Used in API contracts (OpenAPI), config validation, form validation, and IDE autocomplete. { "$schema":…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever