{"id":15485964,"url":"https://github.com/cosmosgenius/jsonparser","last_synced_at":"2025-10-29T04:45:12.938Z","repository":{"id":20000595,"uuid":"23268026","full_name":"cosmosgenius/jsonparser","owner":"cosmosgenius","description":"A JSON Parser for node server","archived":false,"fork":false,"pushed_at":"2017-02-07T10:55:37.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T07:03:34.068Z","etag":null,"topics":["http","json","middleware","parser"],"latest_commit_sha":null,"homepage":null,"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/cosmosgenius.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}},"created_at":"2014-08-23T22:53:31.000Z","updated_at":"2017-01-02T13:33:56.000Z","dependencies_parsed_at":"2022-08-27T03:40:18.060Z","dependency_job_id":null,"html_url":"https://github.com/cosmosgenius/jsonparser","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmosgenius%2Fjsonparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmosgenius%2Fjsonparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmosgenius%2Fjsonparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmosgenius%2Fjsonparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmosgenius","download_url":"https://codeload.github.com/cosmosgenius/jsonparser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246056654,"owners_count":20716779,"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":["http","json","middleware","parser"],"created_at":"2024-10-02T06:05:16.762Z","updated_at":"2025-10-29T04:45:12.867Z","avatar_url":"https://github.com/cosmosgenius.png","language":"JavaScript","readme":"# jsonparser\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/cosmosgenius/jsonparser.svg)](https://greenkeeper.io/)\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Test coverage][coverage-image]][coverage-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\nGets the whole content in the request as a json to the property json\n\n### Install\n\n```sh\n$ npm install jsonparser\n```\n\n## API\n\n```js\nconst jsonparser = require('jsonparser');\n```\n\n### jsonparser(options)\n\nThis middleware adds a `req.json` property which contains the JSON parsed request body\n\n#### Options\n- `strict` a truthy value to check for content type header (default: false).\n- `type` request content-type to parse (default: json).\n- `bodyCheck` a truthy value for empty body check (default: false).\n\n## Example\n\n```js\nconst bodyparser = require('simple-bodyparser');\nconst jsonparser = require('jsonparser');\nconst app = require('express')();\n\napp.use(bodyparser());\napp.use(jsonparser());\napp.use(function(req, res, next){\n    let body = req.json\n});\n```\n\n## License\n\n[MIT](LICENSE)\n\n\n[npm-image]: https://img.shields.io/npm/v/jsonparser.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/jsonparser\n[github-tag]: http://img.shields.io/github/tag/cosmosgenius/jsonparser.svg?style=flat-square\n[github-url]: https://github.com/cosmosgenius/jsonparser/tags\n[travis-image]: https://img.shields.io/travis/cosmosgenius/jsonparser.svg?style=flat-square\n[travis-url]: https://travis-ci.org/cosmosgenius/jsonparser\n[coverage-image]: https://codecov.io/gh/cosmosgenius/jsonparser/branch/master/graph/badge.svg\n[coverage-url]: https://codecov.io/gh/cosmosgenius/jsonparser\n[license-image]: http://img.shields.io/npm/l/jsonparser.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/jsonparser.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/jsonparser\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmosgenius%2Fjsonparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmosgenius%2Fjsonparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmosgenius%2Fjsonparser/lists"}