From 681701172eb89f9fae2897a2a72bfde7b6ef7039 Mon Sep 17 00:00:00 2001 From: Dung Le Date: Tue, 22 Mar 2016 12:47:49 -0600 Subject: [PATCH] typo root and not root2 --- xmlutils/xml2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlutils/xml2json.py b/xmlutils/xml2json.py index f073c89..768505e 100644 --- a/xmlutils/xml2json.py +++ b/xmlutils/xml2json.py @@ -44,7 +44,7 @@ def get_json(self, pretty=True): except StopIteration: print("Event StopIteration found, done!") finally: - return self._elem2json(root2, pretty) + return self._elem2json(root, pretty) def convert(self, pretty=True): """