{"id":13819273,"url":"https://github.com/airporting/middy-json-body-parser","last_synced_at":"2025-05-16T04:32:57.268Z","repository":{"id":210200334,"uuid":"725984382","full_name":"airporting/middy-json-body-parser","owner":"airporting","description":"HTTP json body parser middleware for the middy framework, fault tolerant","archived":true,"fork":false,"pushed_at":"2024-11-14T17:59:05.000Z","size":3426,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-19T18:47:13.747Z","etag":null,"topics":["middy"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/airporting.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T09:36:15.000Z","updated_at":"2024-11-14T17:59:20.000Z","dependencies_parsed_at":"2024-01-29T05:28:34.835Z","dependency_job_id":"5a3a6536-f239-4e12-b474-1b226db004d5","html_url":"https://github.com/airporting/middy-json-body-parser","commit_stats":null,"previous_names":["airporting/middy-json-body-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airporting%2Fmiddy-json-body-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airporting%2Fmiddy-json-body-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airporting%2Fmiddy-json-body-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airporting%2Fmiddy-json-body-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airporting","download_url":"https://codeload.github.com/airporting/middy-json-body-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254469840,"owners_count":22076562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["middy"],"created_at":"2024-08-04T08:00:43.913Z","updated_at":"2025-05-16T04:32:56.032Z","avatar_url":"https://github.com/airporting.png","language":"JavaScript","funding_links":[],"categories":["Middy Middlewares"],"sub_categories":["Third-Party Middlewares"],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Static Badge](https://img.shields.io/badge/coverage-100-brightgreen)\n![Static Badge](https://img.shields.io/badge/release-1.0.8-blue)\n[![test](https://github.com/airporting/middy-json-body-parser/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/airporting/middy-json-body-parser/actions/workflows/test.yml)\n\nUsed by [Airporting](https://www.airporting.com)\n\nNodeJs 18.x or newer only.\n\n[![Linkedin](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://www.linkedin.com/company/airporting)\n\n# middy-json-body-parser\n\nAutomatically parses HTTP requests with a JSON body and converts the body into an object.\n\n```javascript\nimport middy from '@middy/core';\nimport httpJsonBodyParserMiddleware from '@airporting/middy-json-body-parser';\n\nmiddy(yourHandler).use(httpJsonBodyParserMiddleware());\n```\n\n## Usage\n\n```javascript\nexport default async ({ body }) =\u003e {\n  // direct usage of body as an object\n};\n```\n\n## What about the official one ?\n\nMiddy organisation provides this\npackage: [@middy/http-json-body-parser](https://middy.js.org/docs/middlewares/http-json-body-parser)\n\nIt's a great package. Working well.\n\nBut. It's not really fault tolerant. You need to validate data passed to it in front of this middleware. We believe, at\nAirporting that the execution order should be the reversed. That's all folks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairporting%2Fmiddy-json-body-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairporting%2Fmiddy-json-body-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairporting%2Fmiddy-json-body-parser/lists"}