Sha256: 9f5341ce70f24bfa3f71fb43e934b77fac2708e2304a04e2a2cec1d9b27a91c7

Contents?: true

Size: 235 Bytes

Versions: 2

Compression:

Stored size: 235 Bytes

Contents

require 'json'

module Daijobu
  module Scheme
    class JSON
      
      def parse(str)
        str.nil? ? nil : ::JSON.parse(str)
      end
      
      def unparse(obj)
        ::JSON.unparse(obj)
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sander6-daijobu-0.1.1 lib/daijobu/schemes/json.rb
sander6-daijobu-0.2.0 lib/daijobu/schemes/json.rb