{"id":21252668,"url":"https://github.com/atomicptr/json-linter","last_synced_at":"2025-07-11T01:33:06.852Z","repository":{"id":64061564,"uuid":"573042607","full_name":"atomicptr/json-linter","owner":"atomicptr","description":"Lint your JSON files!","archived":false,"fork":false,"pushed_at":"2022-12-14T09:58:19.000Z","size":42,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-10T04:15:50.186Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomicptr.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":"2022-12-01T15:18:57.000Z","updated_at":"2024-10-22T17:21:13.000Z","dependencies_parsed_at":"2023-01-14T20:45:24.141Z","dependency_job_id":null,"html_url":"https://github.com/atomicptr/json-linter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fjson-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fjson-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fjson-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fjson-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicptr","download_url":"https://codeload.github.com/atomicptr/json-linter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225669644,"owners_count":17505386,"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-21T03:48:23.929Z","updated_at":"2024-11-21T03:48:24.604Z","avatar_url":"https://github.com/atomicptr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-linter\n\nLint your JSON files!\n\n## Features\n\n* Check if keys are sorted alphabetically...\n* Check if your keys are either in camelCase, snake\\_case or kebab-case...\n* ...and automatically fix (some) of these issues!\n\n## Install\n\nYou need to have Python 3.10+ installed.\n\n```bash\n$ pip install json-linter\n```\n\n## Usage\n\n```bash\n# Lint a single file...\n$ json-linter my-file.json\n\n# Lint multiple files...\n$ json-linter a.json b.json\n\n# Lint all files in a directory\n$ json-linter files\n\n# Lint all files in a directory recursively\n$ json-linter files --recursive\n\n# Lint all files in a directory recursively with .config and .cfg ending\n$ json-linter files -r --extensions cfg config\n\n# Fix files (will overwrite the file with a fixed version and then lint)\n$ json-linter my-file.json --fix\n\n# Overwrite configuration values\n$ json-linter my-file.json --config-set naming_style=KEBAB_CASE indent=2\n\n# Return results as json\n$ json-linter my-file.json --json\n```\n\n### Use as a package\n\n```python\nfrom pathlib import Path\n\nfrom json_linter import lint_file\n\n\nresults = lint_file(Path(\"./my-file.json\"))\n\nfor result in results:\n    if not result.was_successful:\n        print(result.path, \"failed!\")\n\n```\n\n## License\n\nGNU General Public License v3\n\n![](https://www.gnu.org/graphics/gplv3-127x51.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicptr%2Fjson-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicptr%2Fjson-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicptr%2Fjson-linter/lists"}