{"library":"json-fetch","type":"library","category":null,"description":"json-fetch is a lightweight wrapper around the ES6 fetch API that simplifies interacting with JSON APIs. It automatically serializes request bodies to JSON and sets appropriate Content-Type headers, parses responses as JSON when Content-Type is application/json, includes credentials by default, and supports configurable retry logic via the promise-retry library. Current stable version: 9.0.10. Release cadence is irregular. Key differentiators: built-in retry strategies for 5xx errors and network errors, request/response lifecycle callbacks, TypeScript type declarations (requires DOM lib), and a simple API that reduces boilerplate for JSON API calls. Supports Node.js >=12.","language":"javascript","status":"active","version":"9.0.10","tags":["javascript","fetch","api","json","es6"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install json-fetch","imports":["import jsonFetch from 'json-fetch'","import { retriers } from 'json-fetch'","import { FetchUnexpectedStatusError } from 'json-fetch'","import type { FetchResponse } from 'json-fetch'"]},{"cmd":"yarn add json-fetch","imports":[]},{"cmd":"pnpm add json-fetch","imports":[]}],"homepage":"https://github.com/goodeggs/json-fetch","github":"git://github.com/goodeggs/json-fetch","docs":null,"changelog":null,"pypi":null,"npm":"json-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}