Skip to content

Instantly share code, notes, and snippets.

@mdub
Created Aug 13, 2013
Embed
What would you like to do?
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
require 'yaml'
data = YAML.load(STDIN.read)
puts JSON.pretty_generate(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment