Skip to main content
Module

x/parsec/mod.ts>json

🌌 Tiny body parser for Deno. Port of the milliparsec library.
Latest
variable json
import { json } from "https://deno.land/x/parsec@0.2.1/mod.ts";

Parse a request with JSON body and Content-Type: application/json header.

type

<T = Record<string, unknown>>(
req: ReqWithBody<T>,
_?: unknown,
next?: NextFunction,
) => unknown