module AwesomePrintJson::CLI

Public Class Methods

pretty_print_json(json=nil) click to toggle source
# File lib/awesome_print_json/cli.rb, line 6
def self.pretty_print_json(json=nil)
  json = json || Kernel.gets
  ap JSON.parse(json)
end