{"id":37012202,"url":"https://github.com/seworqs/json-editor","last_synced_at":"2026-01-14T01:03:52.347Z","repository":{"id":287545251,"uuid":"965069990","full_name":"seworqs/json-editor","owner":"seworqs","description":"A dot-notated, chainable JSON editor for PHP with built-in file support and robust array handling.","archived":false,"fork":false,"pushed_at":"2025-04-27T07:44:32.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-17T16:28:10.477Z","etag":null,"topics":["array-handling","dot-notation","editor","immutable","json","json-file","json-manipulation","json-writer","php","seworqs"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seworqs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-04-12T10:47:58.000Z","updated_at":"2025-04-27T07:44:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e4ec25e-5cd8-4146-9a01-e3daba72f4fd","html_url":"https://github.com/seworqs/json-editor","commit_stats":null,"previous_names":["seworqs/json-editor"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/seworqs/json-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seworqs%2Fjson-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seworqs%2Fjson-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seworqs%2Fjson-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seworqs%2Fjson-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seworqs","download_url":"https://codeload.github.com/seworqs/json-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seworqs%2Fjson-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["array-handling","dot-notation","editor","immutable","json","json-file","json-manipulation","json-writer","php","seworqs"],"created_at":"2026-01-14T01:03:51.674Z","updated_at":"2026-01-14T01:03:52.339Z","avatar_url":"https://github.com/seworqs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SEworqs JSON Editor\n\nA dot-notated, chainable JSON editor for PHP with built-in file support and robust array handling.\n\n## Installation\n\nInstall via Composer.\n```bash\n$\u003e composer require seworqs/json-editor\n```\n\n## Usage\n\n```php\nuse Seworqs\\Json\\JsonEditor;\n\n// Create a new file.\n$newJson1 = JsonEditor::createNew(\"/path/to/save/json/file.json\");\n\n// If you want to overwrite a file when it already exists.\n$newJson2 = JsonEditor::createNew(\"/path/to/save/json/file.json\", true);\n\n// Create a new file.\n$newJson3 = JsonEditor::createFromFile(\"/path/to/existing/json/file.json\");\n\n// Overwrite boolean.\n$overwrite = false;\n\n// Add key/value\n$newJson3-\u003eadd('some-key', 'some-value', $overwrite);\n\n// Add key/value in levels deep using dot notation.\n$newJson3-\u003eadd('level1.level2.level3', 'a-deep-value', $overwrite);\n\n// OR Add key/value in levels deep using an array.\n$newJson3-\u003eadd('level1', ['level2' =\u003e ['level3' =\u003e 'a-deep-level']], $overwrite);\n\n/* Both (using dots or array) will create this:\n{\n...\n    \"level1\": {\n        \"level2\": {\n            \"level3\": \"deep-value\"\n        }\n    },\n...\n}\n*/\n```\n\u003e [More examples](docs/Examples.md)\n\n\n## Features\n- [X] Create and edit new JSON file\n- [X] Edit existing JSON file\n- [X] Use easy dot notation to get to your keys\n- [X] Add/delete single or multiple keys at once\n- [X] Bump version with seworqs/semver integration\n\n\u003e See our [examples](docs/Examples.md)\n\n## Classes and namespaces\n\n| Namespace          | Class      | Description      |\n|--------------------|------------|------------------|\n| Seworqs\\JsonEditor | JsonEditor | Nice JSON editor |\n\n\n## License\n\nApache-2.0, see [LICENSE](./LICENSE)\n\n## About SEworqs\nSeworqs builds clean, reusable modules for PHP and Mendix developers.\n\nLearn more at [github.com/seworqs](https://github.com/seworqs)\n\n## Badges\n[![Latest Version](https://img.shields.io/packagist/v/seworqs/json-editor.svg?style=flat-square)](https://packagist.org/packages/seworqs/json-editor)\n[![Total Downloads](https://img.shields.io/packagist/dt/seworqs/json-editor.svg?style=flat-square)](https://packagist.org/packages/seworqs/json-editor)\n[![License](https://img.shields.io/packagist/l/seworqs/json-editor?style=flat-square)](https://packagist.org/packages/seworqs/json-editor)\n[![PHP Version](https://img.shields.io/packagist/php-v/seworqs/json-editor.svg?style=flat-square)](https://packagist.org/packages/seworqs/json-editor)\n[![Made by SEworqs](https://img.shields.io/badge/made%20by-SEworqs-002d74?style=flat-square\u0026logo=https://raw.githubusercontent.com/seworqs/json/main/assets/logo.svg\u0026logoColor=white)](https://github.com/seworqs)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseworqs%2Fjson-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseworqs%2Fjson-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseworqs%2Fjson-editor/lists"}