class Sunstore::Handler::JSON

Public Instance Methods

deserialize(txt) click to toggle source
# File lib/sunstore/handlers/json.rb, line 9
def deserialize(txt)
  JSON.parse(txt)
end
serialize(h) click to toggle source
# File lib/sunstore/handlers/json.rb, line 5
def serialize(h)
    h.to_json
end
type() click to toggle source
# File lib/sunstore/handlers/json.rb, line 13
def type
  "json"
end