JSON.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({ …
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.o…
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', hea…
ReadJSON 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 …
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 No…
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.. { "$schem…
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