Module: Mandy::Serializers::Json

Defined in:
lib/mandy/serializers/json.rb

Instance Method Summary collapse

Instance Method Details

#deserialize_value(value) ⇒ Object



8
9
10
# File 'lib/mandy/serializers/json.rb', line 8

def deserialize_value(value)
  JSON.parse(value)
end

#serialize_value(value) ⇒ Object



4
5
6
# File 'lib/mandy/serializers/json.rb', line 4

def serialize_value(value)
  value.to_json
end