Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bun_tea/core/response.ts>json

Fast, Bun-powered, and Bun-only(for now) Web API framework with full Typescript support.
Latest
function json
import { json } from "https://deno.land/x/bun_tea@v0.0.1-alpha.20/core/response.ts";

Response helper: Sends the provided data as json to the client

Type Parameters

optional
T = void

Parameters

data: T

any or provided type which could be JSON, string, etc.

optional
args: ResponseInit = [UNSUPPORTED]