"0.0.2"
20 21 22 23 24 25 26
# File 'lib/json-prettyprint.rb', line 20 def self.prettify input json = JSON.parse input pretty_json = JSON::pretty_generate json, allow_nan: true, max_nesting: false encoder = CodeRay.encoder :term encoder.encode pretty_json, :json end