Skip to content

Instantly share code, notes, and snippets.

@tyronewilson
tyronewilson / yaml_to_json.rb
Last active March 17, 2020 05:45 — forked from xiaohanyu/yaml_to_json.rb
convert yaml to json in ruby
#!/usr/bin/ruby
# Quick and easy way to convert from yaml to json with pretty format
# Usage:
# Example 1:
#
# # Explicitly give the output filename
# ./yaml_to_json.rb input_file/name.yaml outputfile/name.json
#
# Example 2:
#