Class: Sequent::Core::Oj

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/core/sequent_oj.rb

Overview

small wrapper class to centralize oj and its settings.

Class Method Summary collapse

Class Method Details

.dump(obj) ⇒ Object



18
19
20
# File 'lib/sequent/core/sequent_oj.rb', line 18

def self.dump(obj)
  ::Oj.dump(obj)
end

.strict_load(json) ⇒ Object



14
15
16
# File 'lib/sequent/core/sequent_oj.rb', line 14

def self.strict_load(json)
  ::Oj.strict_load(json, {})
end