Created
October 4, 2012 18:53
-
-
Save hynkle/3835634 to your computer and use it in GitHub Desktop.
pp json from url with gratuitous obfuscation
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
| curl http://www.example.com/resource.json | node -e 'ε="";θ=process;β=θ.stdin;γ=JSON;β.on("data",function(τ){ε+=τ}),β.on("end",function(){θ.stdout.write(γ.stringify(γ.parse(ε),γ.χ,2))}),β.resume();' > pretty_printed_resource.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment