From: José Fonseca Date: Wed, 7 Dec 2011 10:18:06 +0000 (+0000) Subject: Escape JSON strings correctly in jsondiff.py X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=9a2267dd2312afe47cdbfa002355134ae4d88489;p=apitrace Escape JSON strings correctly in jsondiff.py --- 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))