class KongSchema::Reporter::JSONPrettyPrinter
Print objects as human-readable JSON
Public Class Methods
print(object)
click to toggle source
# File lib/kong_schema/reporter.rb, line 42 def self.print(object) JSON.pretty_generate(YAML.load(YAML.dump(object))) + "\n" end