Module

x/oak/body.ts>Body#json

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Go to Latest
method Body.prototype.json
import { Body } from "https://dotland.deno.dev/x/oak@14.2.0/body.ts";

Reads a body to the end attempting to parse the body as a JSON value.

If a JSON reviver has been assigned, it will be used to parse the body.

Returns

Promise<any>