Skip to content

Instantly share code, notes, and snippets.

@mtodd
Created November 13, 2011 22:56
Show Gist options
  • Save mtodd/1362870 to your computer and use it in GitHub Desktop.
Save mtodd/1362870 to your computer and use it in GitHub Desktop.

Revisions

  1. mtodd created this gist Nov 13, 2011.
    5 changes: 5 additions & 0 deletions jsonpp.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    require 'rubygems'
    require 'yajl/json_gem' # or 'json'
    require 'yaml'

    puts JSON.parse($stdin.read.chomp).to_yaml