Skip to content

Instantly share code, notes, and snippets.

@hynkle
Created October 4, 2012 18:53
Show Gist options
  • Select an option

  • Save hynkle/3835634 to your computer and use it in GitHub Desktop.

Select an option

Save hynkle/3835634 to your computer and use it in GitHub Desktop.
pp json from url with gratuitous obfuscation
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