{"id":15543573,"url":"https://github.com/gromnan/jsonx-php","last_synced_at":"2026-03-07T07:31:13.686Z","repository":{"id":20946061,"uuid":"24234501","full_name":"GromNaN/jsonx-php","owner":"GromNaN","description":"JSONx parser for PHP","archived":false,"fork":false,"pushed_at":"2023-10-05T14:49:06.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T02:15:38.306Z","etag":null,"topics":["jsonx"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/GromNaN.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}},"created_at":"2014-09-19T15:13:02.000Z","updated_at":"2024-05-05T23:10:25.000Z","dependencies_parsed_at":"2022-08-30T21:30:44.767Z","dependency_job_id":null,"html_url":"https://github.com/GromNaN/jsonx-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GromNaN%2Fjsonx-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GromNaN%2Fjsonx-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GromNaN%2Fjsonx-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GromNaN%2Fjsonx-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GromNaN","download_url":"https://codeload.github.com/GromNaN/jsonx-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250479851,"owners_count":21437443,"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":["jsonx"],"created_at":"2024-10-02T12:27:33.727Z","updated_at":"2025-10-24T01:02:54.628Z","avatar_url":"https://github.com/GromNaN.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSONX for PHP\n=============\n\nJSONx is a standard to represent JSON as XML.\n\nYou can read the [documentation on IBM website](https://www.ibm.com/docs/fr/datapower-gateway/10.5.x?topic=20-jsonx).\n\nFeatures\n--------\n\n* Convert any `DOMNode` of JSONx into PHP data that can be JSON encoded.\n\nInstall\n-------\n\n    composer require grom/jsonx\n\nUsage\n-----\n\n```php\n// load jsonx file ...\nrequire_once __DIR__.'/../src/jsonx.php';\n\n// or use composer\nrequire 'vendor/autoload.php';\n\n$xml = \u003c\u003c\u003cXML\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cjson:object xsi:schemaLocation=\"http://www.datapower.com/schemas/json jsonx.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:json=\"http://www.ibm.com/xmlns/prod/2009/jsonx\"\u003e\n    \u003cjson:boolean name=\"remote\"\u003efalse\u003c/json:boolean\u003e\n    \u003cjson:number name=\"height\"\u003e62.4\u003c/json:number\u003e\n    \u003cjson:time name=\"date\"\u003e2015-08-29 15:07:00\u003c/json:time\u003e\n    \u003cjson:string name=\"ficoScore\"\u003e \u003e 640\u003c/json:string\u003e\n\u003c/json:object\u003e\nXML;\n\n$dom = new \\DOMDocument();\n$dom-\u003eloadXML($xml);\n\n$data = JSONx\\parse($dom-\u003edocumentElement);\n\nvar_dump(json_encode($data));\n/*\nstring(69) \"{\"remote\":false,\"height\":62.4,\"date\":1440860820,\"ficoScore\":\" \u003e 640\"}\"\n */\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgromnan%2Fjsonx-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgromnan%2Fjsonx-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgromnan%2Fjsonx-php/lists"}