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

x/oak/body.ts>Body#json

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
method Body.prototype.json
import { Body } from "https://deno.land/x/oak@v17.1.2/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>