summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jsonpatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsonpatch.py b/jsonpatch.py
index a72fcea..5454f56 100644
--- a/jsonpatch.py
+++ b/jsonpatch.py
@@ -825,7 +825,7 @@ class DiffBuilder(object):
isinstance(dst, MutableSequence):
self._compare_lists(_path_join(path, key), src, dst)
- elif src == dst and type(src) == type(dst):
+ elif json.dumps(src) == json.dumps(dst):
return
else: