talira

Compare

sigs.k8s.io/yamlghodss/yaml
What it isMarshal Go structs to and from YAML using their JSON tagsGo YAML marshaling that reuses JSON struct tags, by converting YAML to JSON (unmaintained)
KindOpen sourceOpen source
Trust0.330.12
Stars3551063
Last commit2025-12-142022-01-18
LicenceMIT AND BSD-3-ClauseMIT AND BSD-3-Clause
PricingFree and open sourceFree and open source
Free tierYesYes
Self-hostable——
Ways to run it——
SOC 2——
HIPAA——
SSO——
API——
Plugins——
MCP server——
CompanyKubernetes SIG API MachinerySam Ghods
Features
  • marshal and unmarshal YAML with a struct's JSON tags
  • reuses custom JSON marshalling methods for YAML
  • YAMLToJSON and JSONToYAML conversion
  • supports everything go-yaml supports
  • marshal and unmarshal YAML using JSON struct tags
  • honours custom MarshalJSON and UnmarshalJSON methods
  • convert YAML to JSON and JSON to YAML
Limitations
  • Binary data must not be tagged !!binary, or it's decoded to native binary and then wrongly re-encoded
  • Maps whose keys are maps fail, since JSON doesn't support them