code: func (d *YAMLToJSONDecoder) Decode(into interface{}) error {
  	if d.scanner.Scan() {
  		data, err := yaml.YAMLToJSON(d.scanner.Bytes())
  		if err != nil {
  			return err
  		}
  		return json.Unmarshal(data, into)
  	}
  	err := d.scanner.Err()
  	if err == nil {
  		err = io.EOF
  	}
  	return err
  }
docs: // Decode reads a YAML document as JSON from the stream or returns
  // an error. The decoding rules match json.Unmarshal, not
  // yaml.Unmarshal.