Skip to content

docs(express.json): clarify usage and add route-specific limit example #2037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from

Conversation

kushal4345
Copy link

Summary

This PR updates the express.json() documentation to:

  • Clarify behavior and options in a more concise way.
  • Add an example showing how to set different limit values for specific routes (e.g., /upload).

Changes

  • Added a "Different limits for specific routes" section with a code example.
  • Maintained existing style and formatting consistent with the Express docs.
  • Verified that markdown tables and headings render correctly.

Reason

Issue #1421 requests additional clarity on using express.json() with different route limits.
This helps developers quickly understand how to override defaults for specific endpoints without affecting others.

Notes

  • No changes to Express codebase, only to documentation.
  • Follows current contributing and formatting guidelines.

@kushal4345 kushal4345 requested a review from a team as a code owner August 11, 2025 05:13
Copy link

netlify bot commented Aug 11, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 29e10c1
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/689ae3ae2f6e970008f579e5
😎 Deploy Preview https://deploy-preview-2037--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

github-actions bot commented Aug 11, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🔴 65 🟢 100 🟢 96
/en/blog/posts.html mobile 🔴 72 🟢 96 🟢 96
/en/5x/api.html mobile 🔴 66 🟢 95 🟢 96
/ desktop 🟢 97 🟢 100 🟢 96
/en/blog/posts.html desktop 🟢 94 🟢 96 🟢 93
/en/5x/api.html desktop 🟢 93 🟢 95 🟢 96

@kushal4345 kushal4345 closed this Aug 11, 2025
@kushal4345 kushal4345 reopened this Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant