Skip to content

Instantly share code, notes, and snippets.

@herry13
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save herry13/5cba6b7a92d77e9d944a to your computer and use it in GitHub Desktop.

Select an option

Save herry13/5cba6b7a92d77e9d944a to your computer and use it in GitHub Desktop.
An oneliner to format JSON in pretty-print with Ruby
ruby -e "require 'json'; puts (JSON.pretty_generate JSON.parse(STDIN.read))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment