{"id":26151745,"url":"https://github.com/uvlad7/xml2json-rb","last_synced_at":"2025-03-11T06:39:35.028Z","repository":{"id":179778020,"uuid":"664129596","full_name":"uvlad7/xml2json-rb","owner":"uvlad7","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-30T12:50:56.000Z","size":195,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-20T12:47:52.212Z","etag":null,"topics":["converter","gem","json","magnus","ruby","ruby-gem","rubygem","rust","xml"],"latest_commit_sha":null,"homepage":"https://uvlad7.github.io/xml2json-rb/","language":"Ruby","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/uvlad7.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-07-09T02:06:53.000Z","updated_at":"2024-12-16T08:38:30.000Z","dependencies_parsed_at":"2023-10-15T16:48:05.038Z","dependency_job_id":"8bfe2d40-45ef-4318-95c4-608996b25bd8","html_url":"https://github.com/uvlad7/xml2json-rb","commit_stats":null,"previous_names":["uvlad7/xml2json-rb"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvlad7%2Fxml2json-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvlad7%2Fxml2json-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvlad7%2Fxml2json-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uvlad7%2Fxml2json-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uvlad7","download_url":"https://codeload.github.com/uvlad7/xml2json-rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242987801,"owners_count":20217534,"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":["converter","gem","json","magnus","ruby","ruby-gem","rubygem","rust","xml"],"created_at":"2025-03-11T06:39:34.203Z","updated_at":"2025-03-11T06:39:34.973Z","avatar_url":"https://github.com/uvlad7.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/xml2json-rb.svg)](https://badge.fury.io/rb/xml2json-rb)\n![Gem](https://img.shields.io/gem/dt/xml2json-rb?style=plastic)\n![Gem](https://img.shields.io/gem/dtv/xml2json-rb?style=plastic)\n[![Tests](https://github.com/uvlad7/xml2json-rb/actions/workflows/main.yml/badge.svg)](https://github.com/uvlad7/xml2json-rb/actions/workflows/main.yml)\n[![Docs](https://github.com/uvlad7/xml2json-rb/actions/workflows/docs.yml/badge.svg)](https://github.com/uvlad7/xml2json-rb/actions/workflows/docs.yml)\n[![Release](https://github.com/uvlad7/xml2json-rb/actions/workflows/release.yml/badge.svg)](https://github.com/uvlad7/xml2json-rb/actions/workflows/release.yml)\n\n# Xml2Json\n\nA tiny Ruby wrapper for the Rust [xml2json](https://github.com/novcn/xml2json-rs) lib which allows\nto convert xml strings to json and vise versa.\n\nTable of Contents\n-----------------\n\n\u003c!-- Generated with `markdown-toc -i README.md` --\u003e\n\n\u003c!-- toc --\u003e\n\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage examples](#usage-examples)\n- [Documentation](#documentation)\n- [Development](#development)\n- [Contributing](#contributing)\n- [Releases](#releases)\n- [License](#license)\n\n\u003c!-- tocstop --\u003e\n\n## Prerequisites\n\nThis gem is written in Rust and provides precompiled binary versions for the most common architectures and operation systems. If there is no suitable version or if you don't want to use precompiled libraries, you need\nto [install](https://doc.rust-lang.org/cargo/getting-started/installation.html) `cargo` to compile\nit from source.\n\n\u003e **Warning**  \n\u003e This won't work for local development with `rake compile`\n\nIf you have some weird setup with `cargo` named differently, of it's not in your `PATH`, you can\npass a command to be evaluated via environment variable `CARGO`, for example:\n\n    $ export CARGO=cargo1_72_1\n\nor simply\n\n    $ CARGO=/path/to/cargo gem install xml2json-rb\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add xml2json-rb --require xml2json\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install xml2json-rb\n\n## Usage examples\n\n```ruby\nrequire \"xml2json\"\n\nputs Xml2Json::Xml.build_pretty('{\"a\": 1, \"b\": \"2\"}')\n# \u003c?xml version=\"1.0\"?\u003e\n# \u003croot\u003e\n#   \u003ca\u003e1\u003c/a\u003e\n#   \u003cb\u003e2\u003c/b\u003e\n# \u003c/root\u003e\nputs Xml2Json::Json.build(\"\u003croot\u003e\u003ca\u003e1\u003c/a\u003e\u003cb\u003e2\u003c/b\u003e\u003c/root\u003e\", explicit_array: false)\n# {\"root\":{\"a\":\"1\",\"b\":\"2\"}}\n```\n\nSee [specs](spec/xml2json_spec.rb) for more examples.\n\n## Documentation\n\nYARD docs are available on [rubydoc.info](https://rubydoc.info/gems/xml2json-rb/) for the latest\nreleased version and on [pages.github.com](https://uvlad7.github.io/xml2json-rb/) for the most\nrecent changes in `master`\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run\nthe tests. You can also run `bin/console` for an interactive prompt that will allow you to\nexperiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new\nversion, update the version number in `version.rb`, and then run `bundle exec rake release`, which\nwill create a git tag for the version, push git commits and the created tag, and push the `.gem`\nfile to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome [on GitHub](https://github.com/uvlad7/xml2json-rb).\n\n## Releases\n\nThis project uses [Semantic Versioning](https://semver.org/) and adheres to\nthe [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) guidelines.\n\n## License\n\nThe gem is available as open source under the terms of\nthe [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvlad7%2Fxml2json-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuvlad7%2Fxml2json-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuvlad7%2Fxml2json-rb/lists"}