Reference

json

Creates a JSON response using the platform `Response.json()` implementation.

Signature

function json(value: unknown, init?: ResponseInit): Response