# write_yaml

Transforms the input event stream to YAML byte stream.

```tql
write_yaml
```

## Description

Transforms the input event stream to YAML byte stream.

## Examples

### Convert a JSON file into a YAML file

```tql
from_file "input.json" {
  read_json
}
to_file "output.yaml" {
  write_yaml
}
```

## See Also

* [`parse_yaml`](https://preview.docs.tenzir.com/375/375/reference/functions/parse_yaml.md)
* [`print_yaml`](https://preview.docs.tenzir.com/375/375/reference/functions/print_yaml.md)
* [`read_yaml`](https://preview.docs.tenzir.com/375/375/reference/operators/read_yaml.md)