Module: Riak::Serializers::ApplicationJSON

Extended by:
ApplicationJSON
Included in:
ApplicationJSON
Defined in:
lib/riak/serializers.rb

Instance Method Summary collapse

Instance Method Details

#dump(object) ⇒ Object



49
50
51
# File 'lib/riak/serializers.rb', line 49

def dump(object)
  object.to_json(Riak.json_options)
end

#load(string) ⇒ Object



53
54
55
# File 'lib/riak/serializers.rb', line 53

def load(string)
  Riak::JSON.parse(string)
end