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

x/opine/src/response.ts>Response#json

Minimalist web framework for Deno ported from ExpressJS.
Latest
method Response.prototype.json
import { Response } from "https://deno.land/x/opine@2.3.4/src/response.ts";

Send JSON response.

Examples:

res.json(null);
res.json({ user: 'deno' });

Parameters

body: ResponseBody

Returns

this

for chaining