{"id":16803430,"url":"https://github.com/sjmulder/json-yaml","last_synced_at":"2025-07-28T06:04:14.852Z","repository":{"id":136507165,"uuid":"142855930","full_name":"sjmulder/json-yaml","owner":"sjmulder","description":"Convert JSON to YAML and back","archived":false,"fork":false,"pushed_at":"2021-07-29T21:26:33.000Z","size":33,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-28T06:03:11.671Z","etag":null,"topics":["cli","json","textproc","unix","yaml"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjmulder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-07-30T09:41:43.000Z","updated_at":"2023-10-20T10:10:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"a802d749-753d-46e4-bcd7-f3791997277e","html_url":"https://github.com/sjmulder/json-yaml","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sjmulder/json-yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fjson-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fjson-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fjson-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fjson-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjmulder","download_url":"https://codeload.github.com/sjmulder/json-yaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fjson-yaml/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267470063,"owners_count":24092352,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","json","textproc","unix","yaml"],"created_at":"2024-10-13T09:42:37.201Z","updated_at":"2025-07-28T06:04:14.829Z","avatar_url":"https://github.com/sjmulder.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"json-yaml\n=========\n[![Build status](\n https://builds.sr.ht/~sjmulder/json-yaml.svg)](\n https://builds.sr.ht/~sjmulder/json-yaml)\n\n**json-yaml** [_file_]\n\n**yaml-json** [_file_]\n\nConvert JSON to YAML or back. Uses standard input if no filename is supplied.\n\nExamples\n--------\n`$ json-yaml sample.json`\n\n    firstName: John\n    lastName: Smith\n    isAlive: true\n    age: 25\n    address:\n      streetAddress: 21 2nd Street\n      city: New York\n      state: NY\n      postalCode: 10021-3100\n    phoneNumbers:\n    - type: home\n      number: 212 555-1234\n    [...]\n\n`$ yaml-json sample.yaml`\n\n    {\n      \"firstName\": \"John\",\n      \"lastName\": \"Smith\",\n      \"isAlive\": true,\n      \"age\": 25,\n      \"address\": {\n        \"streetAddress\": \"21 2nd Street\",\n        \"city\": \"New York\",\n        \"state\": \"NY\",\n        \"postalCode\": \"10021-3100\"\n      },\n      \"phoneNumbers\": [\n        {\n          \"type\": \"home\",\n          \"number\": \"212 555-1234\"\n        },\n    [...]\n\n`$ curl -s http://api.icndb.com/jokes/random | json-yaml`\n\n    type: success\n    value:\n      id: 415\n      joke: When Chuck Norris wants an egg, he cracks open a chicken.\n      categories: []\n\nInstallation\n------------\nDependencies:\n\n * [libyaml](http://pyyaml.org/wiki/LibYAML)\n * [yajl](https://lloyd.github.io/yajl/)\n\nFrom souce, after tweaking the Makefile to taste:\n\n    make\n    make check\n    make install   [DESTDIR=] [PREFIX=/usr/local]\n\nTo uninstall:\n\n    make uninstall [DESTDIR=] [PREFIX=/usr/local]\n\nAuthors\n-------\nSijmen Mulder (\u003cik@sjmulder.nl\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjmulder%2Fjson-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjmulder%2Fjson-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjmulder%2Fjson-yaml/lists"}