From f0210eb40b1344b8747bf0ef6c7b2507494d3830 Mon Sep 17 00:00:00 2001 From: Sahil Chopra Date: Sat, 14 Jan 2017 15:34:01 +0530 Subject: [PATCH] fix JSON::GeneratorError https://github.com/humante/redis-browser/issues/30 --- lib/redis-browser/browser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/redis-browser/browser.rb b/lib/redis-browser/browser.rb index be2af9a..1840751 100644 --- a/lib/redis-browser/browser.rb +++ b/lib/redis-browser/browser.rb @@ -55,8 +55,8 @@ def keys(namespace = nil) def item_type(e) begin - ["json", MultiJson.decode(e)] - rescue MultiJson::LoadError + ["json", Marshal.load(e)] + rescue TypeError ["string", e] end end