{"id":28385899,"url":"https://github.com/nessex/yaml2json-rs","last_synced_at":"2025-06-26T12:31:11.558Z","repository":{"id":37848712,"uuid":"238453297","full_name":"nessex/yaml2json-rs","owner":"nessex","description":"Command line utility (+libraries) to convert YAML to JSON.","archived":false,"fork":false,"pushed_at":"2023-03-08T20:57:29.000Z","size":142,"stargazers_count":7,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T14:40:49.962Z","etag":null,"topics":["cli","cli-app","crates","library","rust","rust-crates","rust-library","utility","yaml2json"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nessex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-05T13:11:12.000Z","updated_at":"2025-02-17T20:52:42.000Z","dependencies_parsed_at":"2025-05-30T12:10:42.220Z","dependency_job_id":"92f40419-da58-40d8-a1e0-1d16662f88df","html_url":"https://github.com/nessex/yaml2json-rs","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/nessex/yaml2json-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nessex%2Fyaml2json-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nessex%2Fyaml2json-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nessex%2Fyaml2json-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nessex%2Fyaml2json-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nessex","download_url":"https://codeload.github.com/nessex/yaml2json-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nessex%2Fyaml2json-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262067800,"owners_count":23253672,"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":["cli","cli-app","crates","library","rust","rust-crates","rust-library","utility","yaml2json"],"created_at":"2025-05-30T12:10:09.017Z","updated_at":"2025-06-26T12:31:11.552Z","avatar_url":"https://github.com/nessex.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaml2json-rs\n\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/nessex/yaml2json-rs?style=flat-square)](https://hub.docker.com/r/nessex/yaml2json-rs)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Nessex/yaml2json-rs?style=flat-square)\n![Crates.io](https://img.shields.io/crates/l/yaml2json-rs-bin?style=flat-square)\n\nyaml2json-rs converts one or more YAML documents into a JSON stream.\n\nThere are many implementations of this idea, with various limitations. This one aims for:\n - Speed\n - Multi-document support\n - Error control\n     - selectively silence errors or output errors as JSON\n\nThis implementation relies heavily on the existing work in [Serde](https://github.com/serde-rs/serde), [yaml-rust](https://github.com/chyh1990/yaml-rust) and others to provide fast and correct serialization and deserialization. In naïve tests, this provided a significant speed improvement over other implementations, though your mileage may vary.\n\n## Installation\n\nDownload pre-compiled binaries from the [Releases Page](https://github.com/Nessex/yaml2json-rs/releases/).\n\nOr, install via `cargo`:\n```\ncargo install yaml2json-rs-bin --bin yaml2json\n```\n\nOr, quickly try it out with `docker`:\n```\necho \"hello: world\" | docker run -i nessex/yaml2json-rs:master\n```\n\n## Usage\n```\nUtility to convert YAML files to JSON\n\nUSAGE:\n    ./yaml2json file1.yaml file2.yaml\n\n    cat file1.yaml | ./yaml2json\n\n    ./yaml2json --error=json file1.yaml | jq\n\nFLAGS:\n    -h, --help       Prints help information\n    -p, --pretty     \n    -V, --version    Prints version information\n\nOPTIONS:\n    -e, --error \u003cerror\u003e     [default: stderr]  [possible values: silent, stderr, json]\n\nARGS:\n    \u003cfile\u003e...    Specify the path to files you want to convert. You can also pass files via stdin instead.\n```\n\nFor best results when dealing with multiple documents, pass multiple files in at once by path:\n\n```\n# Be sure to use + and not \\; with find\nfind . -name '*.yaml' -exec yaml2json {} +\n```\n\n## Crates\n\n| crate | links | description |\n| --- | --- | --- |\n| [yaml2json-rs-bin](https://crates.io/crates/yaml2json-rs-bin) |  | A command line utility to convert YAML to JSON |\n| [yaml2json-rs](https://crates.io/crates/yaml2json-rs) | [![yaml2json-rs docs](https://docs.rs/yaml2json-rs/badge.svg)](https://docs.rs/yaml2json-rs/) | A library wrapping [serde-yaml](https://github.com/dtolnay/serde-yaml) and [serde-json](https://github.com/serde-rs/json) to convert a single YAML document to JSON |\n| [yaml-split](https://crates.io/crates/yaml-split) | [![yaml2json-rs docs](https://docs.rs/yaml-split/badge.svg)](https://docs.rs/yaml-split/) | A library providing an iterator over individual YAML documents within a YAML file or stream |\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\n## Support\n\nPlease consider supporting the amazing libraries that make this work:\n\n * [serde](https://github.com/serde-rs/serde)\n * [serde-yaml](https://github.com/dtolnay/serde-yaml)\n * [serde-json](https://github.com/serde-rs/json)\n * [anyhow](https://github.com/dtolnay/anyhow)\n * [thiserror](https://github.com/dtolnay/thiserror)\n * [clap](https://github.com/clap-rs/clap)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnessex%2Fyaml2json-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnessex%2Fyaml2json-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnessex%2Fyaml2json-rs/lists"}