{"action":"opened","issue":{"url":"https://api.github.com/repos/gaynetdinov/ex_marshal/issues/5","labels_url":"https://api.github.com/repos/gaynetdinov/ex_marshal/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/gaynetdinov/ex_marshal/issues/5/comments","events_url":"https://api.github.com/repos/gaynetdinov/ex_marshal/issues/5/events","html_url":"https://github.com/gaynetdinov/ex_marshal/issues/5","id":119806665,"number":5,"title":"Decoding error","user":{"login":"dewie","id":69786,"avatar_url":"https://avatars.githubusercontent.com/u/69786?v=3","gravatar_id":"","url":"https://api.github.com/users/dewie","html_url":"https://github.com/dewie","followers_url":"https://api.github.com/users/dewie/followers","following_url":"https://api.github.com/users/dewie/following{/other_user}","gists_url":"https://api.github.com/users/dewie/gists{/gist_id}","starred_url":"https://api.github.com/users/dewie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dewie/subscriptions","organizations_url":"https://api.github.com/users/dewie/orgs","repos_url":"https://api.github.com/users/dewie/repos","events_url":"https://api.github.com/users/dewie/events{/privacy}","received_events_url":"https://api.github.com/users/dewie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-01T20:59:11Z","updated_at":"2015-12-01T20:59:11Z","closed_at":null,"body":"I'm trying to decode a rails session that is dumped with Marshal \r\n\r\n2.1.5 :032 > s.data.data\r\n => \"\\x04\\b{\\tI\\\"\\x19warden.user.user.key\\x06:\\x06ET[\\a[\\x06I\\\"\\x1D548814a064657654501a0000\\x06;\\x00TI\\\"\\\"$2a$10$73PE6lJ5iYxwumwZQ/qjjO\\x06;\\x00TI\\\"\\x1Dwarden.user.user.session\\x06;\\x00T{\\x06I\\\"\\x16unique_session_id\\x06;\\x00TI\\\"\\x19AsqZJFimQjSEsYyAgL8T\\x06;\\x00FI\\\"\\nflash\\x06;\\x00T{\\aI\\\"\\fdiscard\\x06;\\x00T[\\x06I\\\"\\vnotice\\x06;\\x00FI\\\"\\fflashes\\x06;\\x00T{\\x06@\\x13I\\\" Je bent succesvol ingelogd.\\x06;\\x00TI\\\"\\x10_csrf_token\\x06;\\x00FI\\\"1aOaum1ZeInfFvRgG8srczhiGnbpx41VIdix7+4QKxzo=\\x06;\\x00F\" \r\n2.1.5 :033 > Marshal.load(s.data.data)\r\n => {\"warden.user.user.key\"=>[[\"548814a064657654501a0000\"], \"$2a$10$73PE6lJ5iYxwumwZQ/qjjO\"], \"warden.user.user.session\"=>{\"unique_session_id\"=>\"AsqZJFimQjSEsYyAgL8T\"}, \"flash\"=>{\"discard\"=>[\"notice\"], \"flashes\"=>{\"notice\"=>\"Je bent succesvol ingelogd.\"}}, \"_csrf_token\"=>\"aOaum1ZeInfFvRgG8srczhiGnbpx41VIdix7+4QKxzo=\"} \r\n\r\n\r\nWhen i decode this in elixir i get: \r\n\r\nExMarshal.decode(session.data) \r\n** (CaseClauseError) no case clause matching: \"@\"\r\n    lib/ex_marshal/decoder.ex:10: ExMarshal.Decoder.decode_element/2\r\n    lib/ex_marshal/decoder.ex:204: ExMarshal.Decoder.decode_hash/4\r\n    lib/ex_marshal/decoder.ex:205: ExMarshal.Decoder.decode_hash/4\r\n    lib/ex_marshal/decoder.ex:3: ExMarshal.Decoder.decode/1\r\n\r\nAny idea how to solve this ?"}}