{"id":13448417,"url":"https://github.com/vorot93/node2object","last_synced_at":"2025-07-09T07:06:17.503Z","repository":{"id":57645321,"uuid":"81131050","full_name":"vorot93/node2object","owner":"vorot93","description":"Convert between XML Nodes (treexml::Element) and JSON objects (serde_json::Value)","archived":false,"fork":false,"pushed_at":"2019-12-21T02:07:11.000Z","size":18,"stargazers_count":7,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T12:47:40.715Z","etag":null,"topics":["json","xml","xml2json"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/vorot93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-06T20:39:13.000Z","updated_at":"2021-04-19T00:15:54.000Z","dependencies_parsed_at":"2022-08-30T16:01:56.316Z","dependency_job_id":null,"html_url":"https://github.com/vorot93/node2object","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorot93%2Fnode2object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorot93%2Fnode2object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorot93%2Fnode2object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vorot93%2Fnode2object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vorot93","download_url":"https://codeload.github.com/vorot93/node2object/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945561,"owners_count":20372897,"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","xml","xml2json"],"created_at":"2024-07-31T05:01:44.995Z","updated_at":"2025-03-18T19:32:50.588Z","avatar_url":"https://github.com/vorot93.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# node2object\n\n[![GitHub Actions workflow status](https://github.com/vorot93/node2object/workflows/Continuous%20integration/badge.svg)](https://github.com/vorot93/node2object/actions)\n\nConvert between XML nodes ([treexml](https://github.com/rahulg/treexml-rs)) and JSON objects ([serde-json](https://github.com/serde-rs/json)).\n\n## Example\n```\nextern crate treexml;\n\n#[macro_use]\nextern crate serde_json;\n\nextern crate node2object;\n\nfn main() {\n    let dom_root = treexml::Document::parse(\"\n        \u003cpopulation\u003e\n          \u003centry\u003e\n            \u003cname\u003eAlex\u003c/name\u003e\n            \u003cheight\u003e173.5\u003c/height\u003e\n          \u003c/entry\u003e\n          \u003centry\u003e\n            \u003cname\u003eMel\u003c/name\u003e\n            \u003cheight\u003e180.4\u003c/height\u003e\n          \u003c/entry\u003e\n        \u003c/population\u003e\n    \".as_bytes()).unwrap().root.unwrap();\n    \n    assert_eq!(serde_json::Value::Object(node2object::node2object(\u0026dom_root)), json!(\n        {\n          \"population\": {\n            \"entry\": [\n              { \"name\": \"Alex\", \"height\": 173.5 },\n              { \"name\": \"Mel\", \"height\": 180.4 }\n            ]\n          }\n        }\n    )); \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorot93%2Fnode2object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvorot93%2Fnode2object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvorot93%2Fnode2object/lists"}