From 9a2267dd2312afe47cdbfa002355134ae4d88489 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 7 Dec 2011 10:18:06 +0000 Subject: [PATCH] Escape JSON strings correctly in jsondiff.py --- scripts/jsondiff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jsondiff.py b/scripts/jsondiff.py index eef742d..00976ca 100755 --- a/scripts/jsondiff.py +++ b/scripts/jsondiff.py @@ -127,7 +127,7 @@ class Dumper(Visitor): self._write(']') def visit_value(self, node): - self._write(repr(node)) + self._write(json.dumps(node)) -- 2.43.0