{"id":46436624,"url":"https://github.com/soenneker/soenneker.utils.yaml","last_synced_at":"2026-05-13T04:00:45.338Z","repository":{"id":342387559,"uuid":"1173791115","full_name":"soenneker/soenneker.utils.yaml","owner":"soenneker","description":"A utility library handling useful YAML functionalities","archived":false,"fork":false,"pushed_at":"2026-05-01T12:24:48.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-01T14:19:53.883Z","etag":null,"topics":["csharp","dotnet","json","util","utils","yaml","yamlutil"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"C#","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/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2026-03-05T18:53:17.000Z","updated_at":"2026-05-01T12:24:50.000Z","dependencies_parsed_at":"2026-04-21T12:00:33.582Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.utils.yaml","commit_stats":null,"previous_names":["soenneker/soenneker.utils.yaml"],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.utils.yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.utils.yaml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.utils.yaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32550914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T21:31:48.061Z","status":"ssl_error","status_checked_at":"2026-05-02T21:31:46.574Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","dotnet","json","util","utils","yaml","yamlutil"],"created_at":"2026-03-05T21:22:22.595Z","updated_at":"2026-05-02T22:02:16.833Z","avatar_url":"https://github.com/soenneker.png","language":"C#","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.utils.yaml.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.yaml/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.yaml/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.utils.yaml/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.utils.yaml.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.utils.yaml/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.utils.yaml/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.utils.yaml/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.Utils.Yaml\n### A utility library handling useful YAML functionalities\n\n## Installation\n\n```\ndotnet add package Soenneker.Utils.Yaml\n```\n\n## Usage\n\nRegister the utility (optional, for DI):\n\n```csharp\nservices.AddYamlUtilAsSingleton(); // or AddYamlUtilAsScoped()\n```\n\nUse `IYamlUtil` for YAML/JSON conversion and validation:\n\n- **ToYaml(object)** – Serialize any object to a YAML string.\n- **FromYaml\u0026lt;T\u0026gt;(string)** – Deserialize YAML to a typed instance.\n- **FromYaml(string)** – Deserialize YAML to an untyped object (dictionary/list).\n- **JsonToYaml(string)** – Convert a JSON string to YAML.\n- **YamlToJson(string)** – Convert a YAML string to JSON.\n- **IsValidYaml(string)** – Return whether the string is valid YAML.\n- **TryFromYaml\u0026lt;T\u0026gt;(string, out T?)** – Try to deserialize YAML to `T`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.utils.yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.utils.yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.utils.yaml/lists"}