class Pallets::Serializers::Json
Public Instance Methods
dump(data)
click to toggle source
# File lib/pallets/serializers/json.rb, line 6 def dump(data) JSON.generate(data) end
load(data)
click to toggle source
# File lib/pallets/serializers/json.rb, line 10 def load(data) JSON.parse(data) end