{"id":26059963,"url":"https://github.com/ajay-mk/modifyjson","last_synced_at":"2026-04-24T11:36:57.816Z","repository":{"id":280571791,"uuid":"942443842","full_name":"ajay-mk/ModifyJSON","owner":"ajay-mk","description":"A simple Python utility for modifying JSON files ","archived":false,"fork":false,"pushed_at":"2025-03-30T02:00:21.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T02:32:12.868Z","etag":null,"topics":["json","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajay-mk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-04T05:45:05.000Z","updated_at":"2025-03-30T02:00:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7f000b1-7321-4c7f-b4a9-969715e2df0d","html_url":"https://github.com/ajay-mk/ModifyJSON","commit_stats":null,"previous_names":["ajay-mk/modifyjson"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajay-mk/ModifyJSON","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-mk%2FModifyJSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-mk%2FModifyJSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-mk%2FModifyJSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-mk%2FModifyJSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajay-mk","download_url":"https://codeload.github.com/ajay-mk/ModifyJSON/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajay-mk%2FModifyJSON/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261263466,"owners_count":23132555,"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":["json","python"],"created_at":"2025-03-08T13:48:46.945Z","updated_at":"2026-04-24T11:36:57.811Z","avatar_url":"https://github.com/ajay-mk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ModifyJSON\n\nA simple Python utility for modifying JSON files with support for:\n- Adding new values\n- Replacing existing values\n- Removing keys and values\n- Handling deeply nested JSON structures using bracket notation\n- Command line and programmatic interfaces\n- Writing modified JSON to a new file without altering the original file\n\n### Usage\n\n```python\nfrom modify_json import modify_json_files\n\n# Example usage\nmodify_json_files('path/to/json/file.json', '[settings][newSetting]', '42', 'add')\n```\n\n#### Command Line Interface\n\nThe script can also be run from the command line.\n\n```bash\npython modify_json.py --add \"path/to/json/file.json\" \"[settings][newSetting]\" 42\n```\n\n#### Writing to a New File\n\nTo save the modified JSON to a new file instead of overwriting the original, use the `--output-file` option:\n\n```bash\npython modify_json.py --add \"path/to/json/file.json\" \"[settings][newSetting]\" 42 --output-file \"path/to/output.json\"\n```\n\nThis will save the modified JSON to `path/to/output.json` without altering the original file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-mk%2Fmodifyjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajay-mk%2Fmodifyjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajay-mk%2Fmodifyjson/lists"}