Convert YAML to JSON with yq

yq -o json < input.yaml > output.json