{"id":17671141,"url":"https://github.com/berkmann18/json-fixer","last_synced_at":"2025-07-27T04:37:51.503Z","repository":{"id":34887339,"uuid":"181698092","full_name":"Berkmann18/json-fixer","owner":"Berkmann18","description":"A JSON checker and fixer","archived":false,"fork":false,"pushed_at":"2023-05-19T20:25:31.000Z","size":1528,"stargazers_count":14,"open_issues_count":18,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T11:51:22.804Z","etag":null,"topics":["checker","fixer","json","linter","parser"],"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/Berkmann18.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Berkmann18","patreon":"berkmann18"}},"created_at":"2019-04-16T13:46:55.000Z","updated_at":"2024-04-14T16:04:11.000Z","dependencies_parsed_at":"2024-06-18T15:33:37.143Z","dependency_job_id":"78565a80-8cb2-411c-8979-f241dc172a58","html_url":"https://github.com/Berkmann18/json-fixer","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berkmann18%2Fjson-fixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berkmann18%2Fjson-fixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berkmann18%2Fjson-fixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Berkmann18%2Fjson-fixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Berkmann18","download_url":"https://codeload.github.com/Berkmann18/json-fixer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788759,"owners_count":21161726,"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":["checker","fixer","json","linter","parser"],"created_at":"2024-10-24T02:43:19.755Z","updated_at":"2025-04-13T21:37:00.494Z","avatar_url":"https://github.com/Berkmann18.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Berkmann18","https://patreon.com/berkmann18"],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n\u003c!--lint disable list-item-indent --\u003e\n- [json-fixer](#json-fixer)\n  - [Usage](#usage)\n  - [Contributors ✨](#contributors-)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# json-fixer\n\n[![NPM](https://nodei.co/npm/json-fixer.png)](https://nodei.co/npm/json-fixer/)\n\n[![GitHub package version](https://img.shields.io/github/package-json/v/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer)\n[![devDependencies Status](https://david-dm.org/berkmann18/json-fixer/dev-status.svg)](https://david-dm.org/berkmann18/json-fixer?type=dev)\n[![dependencies Status](https://david-dm.org/berkmann18/json-fixer/status.svg)](https://david-dm.org/berkmann18/json-fixer)\n\n[![GH Downloads](https://img.shields.io/github/downloads/Berkmann18/json-fixer/total.svg)](https://github.com/Berkmann18/json-fixer/network/members)\n[![GitHub commit activity the past year](https://img.shields.io/github/commit-activity/y/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer/graphs/commit-activity)\n[![GitHub contributors](https://img.shields.io/github/contributors/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer/graphs/contributors)\n[![Github search hit counter](https://img.shields.io/github/search/Berkmann18/json-fixer/goto.svg)](https://github.com/Berkmann18/json-fixer/graphs/traffic)\n\n[![Build Status](https://travis-ci.org/Berkmann18/json-fixer.svg?branch=master)](https://travis-ci.org/Berkmann18/json-fixer)\n[![codecov.io Code Coverage](https://img.shields.io/codecov/c/github/Berkmann18/json-fixer.svg?maxAge=2592000)](https://codecov.io/github/Berkmann18/json-fixer?branch=master)\n[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)\n[![Known Vulnerabilities](https://snyk.io/test/github/Berkmann18/json-fixer/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Berkmann18/json-fixer?targetFile=package.json)\n\n[![GitHub](https://img.shields.io/github/license/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer/blob/master/LICENSE)\n[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Berkmann18/json-fixer/issues)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n[![GitHub top language](https://img.shields.io/github/languages/top/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer)\n[![GitHub language count](https://img.shields.io/github/languages/count/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer)\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/Berkmann18/json-fixer.svg)](https://github.com/Berkmann18/json-fixer)\n\n[![BCH compliance](https://bettercodehub.com/edge/badge/Berkmann18/json-fixer?branch=master)](https://bettercodehub.com/results/Berkmann18/json-fixer)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/81690e927e4f49db939033daae75b2eb)](https://app.codacy.com/manual/maxieberkmann/json-fixer?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=Berkmann18/json-fixer\u0026utm_campaign=Badge_Grade_Dashboard)\n\nA JSON file fixer primarly focused to be used in a NodeJS file.\n\n## Usage\n\n- In NodeJS\n\n```js\nconst jsonFix = require('json-fixer')\nconst fs = require('fs')\n\n// Get the (potentially malformed) JSON data ready\nconst jsonContent = fs.readFileSync('config.json', 'utf-8')\n\nconst {data, changed} = jsonFix(jsonContent) // Lint (and fix) it\n\nif (changed) {\n  // Do something with `data` which is the fixed JSON parsed data from `jsonContent`\n  // e.g. `fs.writeFileSync(configPath, JSON.stringify(data, null, 2))`\n}\n```\n\n- In the CLI\u003cbr\u003e\n  _Not supported yet_ (PR welcome).\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://maxcubing.wordpress.com\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/8260834?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMaximilian Berkmann\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=Berkmann18\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=Berkmann18\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#ideas-Berkmann18\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"#maintenance-Berkmann18\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=Berkmann18\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"#security-Berkmann18\" title=\"Security\"\u003e🛡️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://semantic-release.org/\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/32174276?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSemantic Release Bot\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#platform-semantic-release-bot\" title=\"Packaging/porting to new platform\"\u003e📦\u003c/a\u003e \u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=semantic-release-bot\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/apps/all-contributors\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/649578?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eall-contributors[bot]\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=all-contributors[bot]\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Bkucera\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/14625260?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBen Kucera\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=Bkucera\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/SvetozarMateev\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/25162335?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSvetozar Mateev\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/issues?q=author%3ASvetozarMateev\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e \u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=SvetozarMateev\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://andrepaulo.me\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/19685105?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAndré Paulo\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/issues?q=author%3Aandre-paulo98\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.linkedin.com/in/erkinmatkaziev/\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/22586805?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eErkin Matkaziev\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/issues?q=author%3AErkin97\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.codacy.com/\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/23704769?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCodacy Badger\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#infra-codacy-badger\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=codacy-badger\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/GiraffeKey\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/11844126?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGiraffeKey\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=GiraffeKey\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=GiraffeKey\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/jonasmaertens\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/71458938?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ejonasmaertens\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/issues?q=author%3Ajonasmaertens\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://geoxor.moe\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/34042825?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eGeorge Tsotsos\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Berkmann18/json-fixer/commits?author=Geoxor\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberkmann18%2Fjson-fixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberkmann18%2Fjson-fixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberkmann18%2Fjson-fixer/lists"}