Skip to content

Instantly share code, notes, and snippets.

@dwradcliffe
Created February 17, 2012 20:54
Show Gist options
  • Save dwradcliffe/1855386 to your computer and use it in GitHub Desktop.
Save dwradcliffe/1855386 to your computer and use it in GitHub Desktop.
Quick shell script to print json nicely from curl
#!/bin/bash
curl -# $* | ruby -e "require 'rubygems';require 'json';require 'awesome_print'; ap JSON.parse(STDIN.gets)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment