projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb7f1bd
)
Escape JSON strings correctly in jsondiff.py
author
José Fonseca
<jose.r.fonseca@gmail.com>
Wed, 7 Dec 2011 10:18:06 +0000
(10:18 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Wed, 7 Dec 2011 10:18:06 +0000
(10:18 +0000)
scripts/jsondiff.py
patch
|
blob
|
history
diff --git
a/scripts/jsondiff.py
b/scripts/jsondiff.py
index
eef742d
..
00976ca
100755
(executable)
--- 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))