{"id":24663834,"url":"https://github.com/vasrem/jsontoyaml","last_synced_at":"2026-05-10T19:48:26.751Z","repository":{"id":192575665,"uuid":"201067912","full_name":"vasrem/jsontoyaml","owner":"vasrem","description":"JSON to YAML and vice versa","archived":false,"fork":false,"pushed_at":"2019-08-08T08:57:13.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T05:17:08.868Z","etag":null,"topics":["json","jsontoyaml","rust","yaml","yamltojson"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/vasrem.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,"governance":null}},"created_at":"2019-08-07T14:34:30.000Z","updated_at":"2019-08-08T08:57:15.000Z","dependencies_parsed_at":"2023-09-05T03:06:58.690Z","dependency_job_id":"ce3c2241-c44c-4680-9edc-94b18996ead9","html_url":"https://github.com/vasrem/jsontoyaml","commit_stats":null,"previous_names":["vasrem/jsontoyaml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasrem%2Fjsontoyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasrem%2Fjsontoyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasrem%2Fjsontoyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasrem%2Fjsontoyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasrem","download_url":"https://codeload.github.com/vasrem/jsontoyaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767541,"owners_count":20507110,"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","jsontoyaml","rust","yaml","yamltojson"],"created_at":"2025-01-26T05:17:12.843Z","updated_at":"2026-05-10T19:48:21.707Z","avatar_url":"https://github.com/vasrem.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsontoyaml\n\nCommand line tool to convert JSON to YAML and vice versa.\n\n***Attention:*** This is a small project which I did to get familiar with Rust and it is not meant to be used in production.\n\n## Dependencies\n\n* Rust 1.36.0 (most likely it works with previous versions as well but this is what I had at this point)\n\n## Build\n\nFirst you need to build the project using the following command:\n\n``` bash\ncargo build\n# or\ncargo build --release\n```\n\nThen copy the binary which is under `target/{release,debug}/jsontoyaml` to your preferred `$PATH` directory.\n\n## Usage\n\n\n``` bash\n$ jsontoyaml -h\njsontoyaml 0.1.0\nConverts JSON to YAML and vice versa using stdin\n\nUSAGE:\n    jsontoyaml [FLAGS]\n\nFLAGS:\n    -h, --help       Prints help information\n    -r, --reverse    YAML to JSON\n    -V, --version    Prints version information\n```\n\nYou can use the binary as shown below:\n\n``` bash\n# JSON to YAML\ncat \u003c\u003cEOF | jsontoyaml\n{\n  \"field1\": \"val1\",\n  \"arr\": [\n      \"val1\", \"val2\"\n  ]\n}\nEOF\n\n# YAML to JSON\ncat \u003c\u003cEOF | jsontoyaml -r\n---\nfield1: val1\narr:\n  - val1\n  - val2\nEOF\n```\n\n## Contribution\n\nFeel free to file any Issue/PR regarding bugs or code refactoring. It will be really helpful for me to get more into Rust. :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasrem%2Fjsontoyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasrem%2Fjsontoyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasrem%2Fjsontoyaml/lists"}