class Cipherpipe::Formatters::JSON

Public Class Methods

read(input) click to toggle source
# File lib/cipherpipe/formatters/json.rb, line 2
def self.read(input)
  require "json"
  ::JSON.load input
end
write(input) click to toggle source
# File lib/cipherpipe/formatters/json.rb, line 7
def self.write(input)
  require "json"
  ::JSON.pretty_generate input
end