Last active
January 3, 2016 10:58
-
-
Save holysugar/8452566 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 'msgpack' | |
print JSON.load(ARGF.read).to_msgpack |
This file contains hidden or 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 'msgpack' | |
print MessagePack.unpack(ARGF.read).to_json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment