Class: Sqrewdriver::Serdes::JSONSerde::JSONWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/sqrewdriver/serdes/json_serde.rb

Instance Method Summary collapse

Instance Method Details

#dump(val, **options) ⇒ Object



5
6
7
# File 'lib/sqrewdriver/serdes/json_serde.rb', line 5

def dump(val, **options)
  JSON.generate(val, **options)
end

#load(val, **options) ⇒ Object



9
10
11
# File 'lib/sqrewdriver/serdes/json_serde.rb', line 9

def load(val, **options)
  JSON.load(val, nil, **options)
end