diff --git a/lib/fog/json.rb b/lib/fog/json.rb index 2fd54d1..1f9b849 100644 --- a/lib/fog/json.rb +++ b/lib/fog/json.rb @@ -31,13 +31,13 @@ def self.sanitize(data) # Do the MultiJson introspection at this level so we can define our encode/decode methods and # perform the introspection only once rather than once per call. def self.encode(obj) - MultiJson.encode(obj) + MultiJson.dump(obj) rescue => err raise EncodeError.slurp(err) end def self.decode(obj) - MultiJson.decode(obj) + MultiJson.load(obj) rescue => err raise DecodeError.slurp(err) end