Created
July 16, 2015 19:11
-
-
Save sysbot/12a0dcb501edb384140d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'yaml' | |
input = $stdin.read | |
data = YAML::load(input) | |
json = JSON.dump(data) | |
puts json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment