MoroJSoro JS
DocsBenchmarksPlaygroundMigrate
GitHubGet started

Technical

API Reference & Architecture

DocsCLITechnical

Docs for @morojs/moro v1.8.0

Technical
API
Functions
Json

@morojs/moro


@morojs/moro / json

Function: json()

json(_options?): Middleware

Defined in: src/core/middleware/built-in/body-parsers/index.ts:8

JSON body-parser middleware. MoroJS auto-parses JSON bodies on POST/PUT/PATCH requests upstream, so this middleware is effectively a pass-through. It exists so code written in the app.use(json()) idiom works verbatim without rewrites.

Parameters

_options?

limit?

string | number

strict?

boolean

Returns

Middleware

Back to jsonView Source
MoroJSoro JS

A TypeScript backend framework with its own native engine. Zero dependencies, four runtimes.

Product

DocsBenchmarksPlaygroundCLIBlog

Compare

vs ExpressMigration guidesRoadmap

Community

GitHubDiscordXExamples

Legal

PrivacyTermsAbout
© CM Ventures, Inc. Built withfor the TypeScript community.