From 080a6e4ca4eb69dcc9ed8cbed1419e002a31f465 Mon Sep 17 00:00:00 2001
From: Guodong Shen <gdshen95@gmail.com>
Date: Tue, 19 Jan 2021 22:31:13 +0800
Subject: [PATCH] fix json load error

---
 fmz.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fmz.py b/fmz.py
index 389e3e1..44ddb81 100644
--- a/fmz.py
+++ b/fmz.py
@@ -56,6 +56,8 @@ def hasattr(obj, method):
     string_types = basestring
 
 def json_loads(s):
+    if s.decode('utf-8') == '':
+        return {}
     if isPython3:
         return json.loads(s.decode('utf-8'))
     return json.loads(s)