• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Pretty printing JSON with RubyEdit

Created 6/23/2014, updated 5/18/2017
require 'json'
JSON.pretty_generate(JSON[input])

Source

  • http://stackoverflow.com/questions/86653/how-can-i-pretty-format-my-json-output-in-ruby-on-rails
  • ruby
  • javascript
  • json
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).