MCPcopy Create free account
hub / github.com/IBM/newrelic-cli / YAMLToJSONDecoder

Struct YAMLToJSONDecoder

utils/decoder.go:45–47  ·  view source on GitHub ↗

YAMLToJSONDecoder decodes YAML documents from an io.Reader by separating individual documents. It first converts the YAML body to JSON, then unmarshals the JSON.

Source from the content-addressed store, hash-verified

43// separating individual documents. It first converts the YAML
44// body to JSON, then unmarshals the JSON.
45type YAMLToJSONDecoder struct {
46 reader Reader
47}
48
49// NewYAMLToJSONDecoder decodes YAML documents from the provided
50// stream in chunks by converting each document (as defined by

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected