class FMCache::Jsonizer::DefaultJsonSerializer
Public Class Methods
dump(obj)
click to toggle source
@param [Hash | Array] obj @return [String]
# File lib/fmcache/jsonizer/default_json_serializer.rb, line 7 def dump(obj) JSON.dump(obj) end
load(json)
click to toggle source
@param [String] json @return [Hash | Array]
# File lib/fmcache/jsonizer/default_json_serializer.rb, line 13 def load(json) JSON.parse(json, symbolize_names: true) end