{"id":15102804,"url":"https://github.com/6543/go-yaml2json","last_synced_at":"2026-02-19T02:01:28.868Z","repository":{"id":152848573,"uuid":"514851580","full_name":"6543/go-yaml2json","owner":"6543","description":"MIRROR","archived":false,"fork":false,"pushed_at":"2024-05-14T13:41:36.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-09T16:39:44.181Z","etag":null,"topics":["converter","golang","golang-library","json","jsonschema","mirror","yaml"],"latest_commit_sha":null,"homepage":"https://codeberg.org/6543/go-yaml2json","language":"Go","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/6543.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-07-17T13:30:07.000Z","updated_at":"2024-05-14T13:41:04.000Z","dependencies_parsed_at":"2024-05-14T14:59:07.164Z","dependency_job_id":null,"html_url":"https://github.com/6543/go-yaml2json","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"7db6644dd0a783b29c586e083aa6927a35de57dc"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/6543/go-yaml2json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fgo-yaml2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fgo-yaml2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fgo-yaml2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fgo-yaml2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6543","download_url":"https://codeload.github.com/6543/go-yaml2json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fgo-yaml2json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279980782,"owners_count":26254184,"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-10-20T02:00:06.978Z","response_time":62,"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":["converter","golang","golang-library","json","jsonschema","mirror","yaml"],"created_at":"2024-09-25T19:07:04.524Z","updated_at":"2025-10-20T02:19:32.452Z","avatar_url":"https://github.com/6543.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-yaml2json\n\n[![Tests](https://ci.codeberg.org/api/badges/6543/go-yaml2json/status.svg)](https://ci.codeberg.org/6543/go-yaml2json)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/codeberg.org/6543/go-yaml2json?status.svg)](https://godoc.org/codeberg.org/6543/go-yaml2json)\n[![Go Report Card](https://goreportcard.com/badge/codeberg.org/6543/go-yaml2json)](https://goreportcard.com/report/codeberg.org/6543/go-yaml2json)\n\n\u003ca href=\"https://codeberg.org/6543/go-yaml2json\"\u003e\n    \u003cimg alt=\"Get it on Codeberg\" src=\"https://codeberg.org/Codeberg/GetItOnCodeberg/media/branch/main/get-it-on-neon-blue.png\" height=\"60\"\u003e\n\u003c/a\u003e\n\ngolang lib to convert yaml into json\n\n```sh\ngo get codeberg.org/6543/go-yaml2json\n```\n\n```go\nyaml2json.Convert(data []byte) ([]byte, error)\nyaml2json.StreamConvert(r io.Reader, w io.Writer) error\n```\n\n## Example\n\n[\u003cimg src=\"https://go.dev/images/go-logo-white.svg\" alt=\"Go\" height=15\u003e **Playground**](https://go.dev/play/p/fBddDCaucNG)\n\nyaml:\n\n```yaml\n- name: Jack\n  job: Butcher\n- name: Jill\n  job: Cook\n  obj:\n    empty: false\n    data: |\n      some data 123\n      with new line      \n```\n\nwill become json:\n```json\n[\n  {\n    \"job\": \"Butcher\",\n    \"name\": \"Jack\"\n  },\n  {\n    \"job\": \"Cook\",\n    \"name\": \"Jill\",\n    \"obj\": {\n      \"data\": \"some data 123\\nwith new line\\n\",\n      \"empty\": false\n    }\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6543%2Fgo-yaml2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6543%2Fgo-yaml2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6543%2Fgo-yaml2json/lists"}