{"id":20640135,"url":"https://github.com/maresb/check-json5","last_synced_at":"2025-09-05T20:42:43.062Z","repository":{"id":107326897,"uuid":"434750584","full_name":"maresb/check-json5","owner":"maresb","description":"checks json files for syntax parsable as json5 (with comments).","archived":false,"fork":false,"pushed_at":"2021-12-04T10:28:15.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T11:38:14.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/maresb.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":"2021-12-03T22:31:30.000Z","updated_at":"2024-08-08T20:24:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb86470d-346d-4208-8086-7bc987b819b0","html_url":"https://github.com/maresb/check-json5","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/maresb/check-json5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fcheck-json5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fcheck-json5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fcheck-json5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fcheck-json5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maresb","download_url":"https://codeload.github.com/maresb/check-json5/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fcheck-json5/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264816035,"owners_count":23668103,"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":[],"created_at":"2024-11-16T15:28:04.025Z","updated_at":"2025-07-11T13:07:21.685Z","avatar_url":"https://github.com/maresb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# check-json5\n\n## Links\n\n- [GitLab](https://gitlab.com/bmares/check-json5)\n- [GitHub](https://github.com/maresb/check-json5)\n\n## Introduction\n\nThis is a pre-commit hook which verifies that `.json` files in a repository are valid [JSON5](https://json5.org/). The JSON5 format is similar to JSON, but it permits comments, trailing commas, and more. It is similar to the so-called \"JSONC\" (JSON with Comments) format, but JSON5 has an actual specification.\n\nThis hook is a drop-in replacement for the `check-json` hook from the [official pre-commit-hooks repository](https://pre-commit.com/hooks.html). A file succeeds when it can be loaded by the [json5 library](https://pypi.org/project/json5/). (In contrast, `check-json` uses the built-in [json library](https://docs.python.org/3/library/json.html).)\n\n## Usage\n\nIn `.pre-commit-config.yaml` under the `repos:` section, add the following:\n\n```yaml\n- repo: https://gitlab.com/bmares/check-json5\n  rev: v1.0.0\n  hooks:\n  - id: check-json5\n```\n\n(The original `check-json` hook should probably be removed in case it is already included.)\n\n## Credits\n\nThe actual code this hook was written by [@asottile and various contributors to the official pre-commit-hooks repository](https://github.com/pre-commit/pre-commit-hooks/commits/master/pre_commit_hooks/check_json.py). The current author (Ben Mares) replaced the `json` library with `json5` and published it as a separate hook.\n\n## License\n\nThis hook is published under the [MIT license](LICENSE). The original pre-commit-hooks collection (from which this hook is derived) is also published under the MIT license, [included here](LICENSE.pre-commit-hooks).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaresb%2Fcheck-json5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaresb%2Fcheck-json5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaresb%2Fcheck-json5/lists"}