N.B. Unlike other encoding methods, the contained objects must be a valid JSON composite type, either a Hash or an Array.

Methods
D
E
Instance Public methods
decode(str)
# File lib/rack/session/cookie.rb, line 78
def decode(str)
  return unless str
  ::JSON.parse(super(str)) rescue nil
end
encode(obj)
# File lib/rack/session/cookie.rb, line 74
def encode(obj)
  super(::JSON.dump(obj))
end