aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/session/json_serializer.rb
blob: d341853f7aeaf9c8cb8d1a2a54c51b2e377d8bfc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActionDispatch
  module Session
    class JsonSerializer
      def self.load(value)
        JSON.parse(value, quirks_mode: true)
      end

      def self.dump(value)
        JSON.generate(value, quirks_mode: true)
      end
    end
  end
end