$ echo -e 'foo: bar\n#Hello world' | sops --input-type yaml --output-type yaml -e /dev/stdin > test.yaml
$ sops -d test.yaml
foo: bar
#Hello world
$ sops --output-type json --decrypt --input-type yaml test.yaml
Error dumping file: Error marshaling to json: invalid character '}' looking for beginning of object key string