lib/flapjack.rb in flapjack-1.1.0 vs lib/flapjack.rb in flapjack-1.2.0rc1

- old
+ new

@@ -1,6 +1,16 @@ #!/usr/bin/env ruby +require 'oj' + module Flapjack + + def self.load_json(data) + Oj.load(data, :mode => :strict, :symbol_keys => false) + end + + def self.dump_json(data) + Oj.dump(data, :mode => :compat, :time_format => :ruby, :indent => 0) + end end