cubicweb/utils.py
branch3.24
changeset 11909 244cd7f407b8
parent 11767 432f87a63057
child 11983 5de78b6fff2e
--- a/cubicweb/utils.py	Thu Jan 12 13:40:25 2017 +0100
+++ b/cubicweb/utils.py	Fri Jan 20 03:54:43 2017 +0100
@@ -534,7 +534,7 @@
         it = sorted(d.items())
     else:
         it = d.items()
-    res = [key + ': ' + js_dumps(val, predictable)
+    res = [js_dumps(key, predictable) + ': ' + js_dumps(val, predictable)
            for key, val in it]
     return '{%s}' % ', '.join(res)