{"id":15525381,"url":"https://github.com/ghostwriter/json","last_synced_at":"2025-06-30T11:05:45.186Z","repository":{"id":57715320,"uuid":"512899417","full_name":"ghostwriter/json","owner":"ghostwriter","description":"Type safe JSON encoder and decoder for PHP","archived":false,"fork":false,"pushed_at":"2025-06-29T12:19:43.000Z","size":629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"3.0.x","last_synced_at":"2025-06-29T13:28:36.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghostwriter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["ghostwriter"]}},"created_at":"2022-07-11T20:27:44.000Z","updated_at":"2025-06-29T12:19:45.000Z","dependencies_parsed_at":"2023-12-04T18:26:32.278Z","dependency_job_id":"95e5d1ca-1067-47d6-a64c-ae2a02e83260","html_url":"https://github.com/ghostwriter/json","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"2ded5a6e92f794c9ef52a8082b820090d0e5ddf0"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":"ghostwriter/wip","purl":"pkg:github/ghostwriter/json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostwriter","download_url":"https://codeload.github.com/ghostwriter/json/tar.gz/refs/heads/3.0.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostwriter%2Fjson/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262602530,"owners_count":23335479,"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-10-02T10:57:11.635Z","updated_at":"2025-06-30T11:05:45.157Z","avatar_url":"https://github.com/ghostwriter.png","language":"PHP","funding_links":["https://github.com/sponsors/ghostwriter"],"categories":[],"sub_categories":[],"readme":"# Json\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/ghostwriter?label=Sponsor+@ghostwriter/json\u0026logo=GitHub+Sponsors)](https://github.com/sponsors/ghostwriter)\n[![Automation](https://github.com/ghostwriter/json/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/json/actions/workflows/automation.yml)\n[![Supported PHP Version](https://badgen.net/packagist/php/ghostwriter/json?color=8892bf)](https://www.php.net/supported-versions)\n[![Downloads](https://badgen.net/packagist/dt/ghostwriter/json?color=blue)](https://packagist.org/packages/ghostwriter/json)\n\nSafely encode and decode JSON\n\n## Installation\n\nYou can install the package via composer:\n\n``` bash\ncomposer require ghostwriter/json\n```\n\n### Star ⭐️ this repo if you find it useful\n\nYou can also star (🌟) this repo to find it easier later.\n\n## Usage\n\n```php\nuse \\Ghostwriter\\Json\\Json;\n\n$json = new Json();\n\n$encode = $json-\u003eencode(['foo'=\u003e'bar']);\n// {\"foo\":\"bar\"}\n\n$json-\u003evalidate($encode); // true\n\n$decode = $json-\u003edecode($encode);\n// ['foo'=\u003e'bar']\n\n$prettyPrint = true;\n$json-\u003eencode($decode, $prettyPrint); \n// {\n//    \"foo\":\"bar\"\n// }\n```\n\n### Credits\n\n- [Nathanael Esayeas](https://github.com/ghostwriter)\n- [All Contributors](https://github.com/ghostwriter/json/contributors)\n\n### Changelog\n\nPlease see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.\n\n### License\n\nPlease see [LICENSE](./LICENSE) for more information on the license that applies to this project.\n\n### Security\n\nPlease see [SECURITY.md](./SECURITY.md) for more information on security disclosure process.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostwriter%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostwriter%2Fjson/lists"}