{"id":34615746,"url":"https://github.com/bitdotgames/php-jzon","last_synced_at":"2026-05-26T12:07:45.195Z","repository":{"id":46708131,"uuid":"275820634","full_name":"bitdotgames/php-jzon","owner":"bitdotgames","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-01T10:50:50.000Z","size":24,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-05T02:42:31.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/bitdotgames.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":"2020-06-29T13:18:08.000Z","updated_at":"2022-09-10T06:38:04.000Z","dependencies_parsed_at":"2022-09-06T07:10:45.296Z","dependency_job_id":null,"html_url":"https://github.com/bitdotgames/php-jzon","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/bitdotgames/php-jzon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitdotgames%2Fphp-jzon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitdotgames%2Fphp-jzon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitdotgames%2Fphp-jzon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitdotgames%2Fphp-jzon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitdotgames","download_url":"https://codeload.github.com/bitdotgames/php-jzon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitdotgames%2Fphp-jzon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33519281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T03:12:49.672Z","status":"ssl_error","status_checked_at":"2026-05-26T03:12:47.976Z","response_time":63,"last_error":"SSL_read: 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":[],"created_at":"2025-12-24T14:30:45.682Z","updated_at":"2026-05-26T12:07:45.188Z","avatar_url":"https://github.com/bitdotgames.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP JZON #\n\nThis is a small PHP library for parsing JZON documents. \n\nThis library has a pure PHP implementation and a *much* faster C version implemented as an extension. If the C extension is missing it gracefully fallbacks to the PHP implementation.\n\n## What is JZON? ##\n\nJZON is a *superset* of JSON which is designed to be actively edited by *humans*. \n\nPHP JZON features: \n\n*  no need to worry about trailing commas\n\n*  one line comments starting with #\n\n*  simple array keys don't need to be quoted with \"\"\n\n*  parsing errors are shown in a friendly manner \n\n### Quick Example ###\n\nSay, you have the following JZON file example.json:\n\n```\n#!json\n\n[\"foo\",\n  \"bar\",\n {meaning_of_life: 42,\n#NOTE: no comma ahead\n#      and yes comments are supported!\n   hey: \"bar\"\n  \"thatscool\": 1\n  }\n]\n\n```\n\nNow you can parse it this way:\n\n```\n#!php\n\n\u003c?php\ninclude('jzon.inc.php');\n$str = file_get_contents('example.json');\nvar_dump(jzon_parse($str));\n```\n\nAnd it should output something as follows:\n\n```\narray(3) {\n  [0]=\u003e\n  string(3) \"foo\"\n  [1]=\u003e\n  string(3) \"bar\"\n  [2]=\u003e\n  array(3) {\n    [\"thatscool\"]=\u003e\n    int(1)\n    [\"meaning_of_life\"]=\u003e\n    int(42)\n    [\"hey\"]=\u003e\n    string(3) \"bar\"\n  }\n}\n```\n\n## How do I get set up? ##\n\n### PHP only version ###\n\n* Clone the repo\n\n* Include **jzon.inc.php** and use **jzon_parse($str)** function\n\n### C extension(recommended) ###\n\n* Clone the repo\n\n*  Follow the standard PHP extension installation procedure: **phpize \u0026\u0026 ./configure \u0026\u0026 make \u0026\u0026 make install**\n\n* Add **\"extension=jzon.so\"** line to your php.ini\n\n* Include **jzon.inc.php** and use **jzon_parse($str)** function\n\n## Credits ##\n\nC extension is based on a bit modified code from https://github.com/KarlZylinski/jzon-c repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitdotgames%2Fphp-jzon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitdotgames%2Fphp-jzon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitdotgames%2Fphp-jzon/lists"}