fetch-json
JSON →fetch-json (v3.5.2) is a lightweight JavaScript library (under 4 KB minified) that wraps the Fetch API to reduce boilerplate for JSON REST calls. It automatically sets the content-type header to application/json, runs .json() on responses, serializes request bodies with JSON.stringify(), appends query parameters for GET requests, sets credentials to same-origin, and converts non-JSON text responses to JSON. Released regularly, it supports both browser and Node.js environments, ships TypeScript type definitions, and is ideal for JAMstack architectures. Compared to raw fetch or axios, it provides a simpler API with sensible defaults for JSON endpoints, especially for serverless and client-side apps.