Purpose
This article gives options for converting JSON to YAML using Ruby.
Prerequisites
- Ruby
CLI
1 |
ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < file.json > file.yaml |
This article gives options for converting JSON to YAML using Ruby.
1 |
ruby -ryaml -rjson -e 'puts YAML.dump(JSON.parse(STDIN.read))' < file.json > file.yaml |