Module

x/hono/request.ts>HonoRequest#json

Web Framework built on Web Standards
Extremely Popular
Go to Latest
method HonoRequest.prototype.json
import { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.2.6/request.ts";

.json() can parse Request body of type application/json

Examples

Example 1

app.post('/entry', async (c) => {
  const body = await c.req.json()
})

Type Parameters

optional
T = any

Returns

Promise<T>